npm install monkberry-loader --save
module.exports = {
...
module: {
rules: [
{
test: /\.monk$/,
use: [
{
loader: 'monkberry-loader',
options: { /* ... */ }
}
],
}
]
},
...
}
Add monkberry
options to your webpack.config.js
:
options: {
globals: ['window'],
transforms: [...]
}