mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-02 13:24:20 +01:00
22 lines
477 B
JavaScript
22 lines
477 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
test: /\.js\.erb$/,
|
|
enforce: 'pre',
|
|
exclude: /node_modules/,
|
|
use: [
|
|
{
|
|
loader: 'auto-ngtemplate-loader',
|
|
options: {
|
|
pathResolver: (templatePath) => path.join(__dirname, `../../../app/frontend/templates${templatePath}`)
|
|
}
|
|
},
|
|
{
|
|
loader: 'rails-erb-loader',
|
|
options: {
|
|
runner: (/^win/.test(process.platform) ? 'ruby ' : '') + 'bin/rails runner'
|
|
}
|
|
}
|
|
]
|
|
};
|