3.0.0 • Published 3 years ago

@tarik02/bladejs-loader v3.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

bladejs

TravisCI Build Status AppVeyor Build Status npm version

Installation

$ yarn add --dev @tarik02/bladejs-loader
# or
$ npm install --save-dev @tarik02/bladejs-loader

Usage

Add as loader to webpack.config.js:

...
  module: {
    rules: [
      ...
      {
        test: /\.bjs$/,
        use: [
          {
            loader: '@tarik02/bladejs-loader',
            options: {
              // use default blade functions and constructions (default: true)
              defaults: true,

              // list of custom plugins (paths to them)
              plugins: [
                require.resolve('./plugins/SomePlugin'),
              ],
            },
          },
        ],
      },
      ...
    ],
  },
...