@tarik02/bladejs-loader
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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'),
              ],
            },
          },
        ],
      },
      ...
    ],
  },
...

Package Sidebar

Install

npm i @tarik02/bladejs-loader

Weekly Downloads

3

Version

3.0.0

License

MIT

Unpacked Size

10.1 kB

Total Files

8

Last publish

Collaborators

  • tarik02