ukalib-opal-loader
v0.1.1
Published
A ruby loader module for webpack using Opal
Downloads
5
Readme
opal-loader
Usage
Install
$ npm install --save-dev ukalib-opal-loader
Add a rule into webpack.config.js
module.exports = {
...
module: {
rules: [
// ...
{
test: /\.rb$/,
loader: 'ukalib-opal-loader',
},
],
},
};
With Options
{
test: /\.rb$/,
loader: {
loader: 'opal-loader',
options: {
paths: [
path.resolve(__dirname, 'lib'),
],
},
},
}