bsb-plugin

1.0.1 • Public • Published

BSB Plugin

Hassle free reasonmling with webpack

Getting Started

  1. Install bsb-plugin and bs-platform as dev dependencies
  npm i -s -D bsb-plugin bs-platform
  1. 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})
    ]
  }
  1. 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'))

Readme

Keywords

none

Package Sidebar

Install

npm i bsb-plugin

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

1.46 kB

Total Files

3

Last publish

Collaborators

  • kanitsharma