@tarik02/bladejs-loader
v3.0.0
Published
Laravel's blade templating engine for JavaScript and TypeScript.
Downloads
1
Readme
bladejs
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'),
],
},
},
],
},
...
],
},
...