bsb-plugin
v1.0.1
Published
Hassle free reasonmling with webpack
Downloads
1
Readme
BSB Plugin
Hassle free reasonmling with webpack
Getting Started
- Install bsb-plugin and bs-platform as dev dependencies
npm i -s -D bsb-plugin bs-platform
- Add it to your webpack.config
const path = require('path')
const bsbPlugin = require('bsb-plugin')
module.exports = {
entry: './src/index.js',
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'build')
},
plugins: [
new bsbPlugin({options: true})
]
}
- Freely import .re files within your javascript files, it will be compiled to javascript
test.re
let greet = name => "Hello " ++ name;
index.js
import { greet } from './test'
console.log(greet('Test'))