mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
20 lines
411 B
JavaScript
20 lines
411 B
JavaScript
module.exports = {
|
|
test: /\.js\.erb$/,
|
|
enforce: 'pre',
|
|
exclude: /node_modules/,
|
|
use: [
|
|
{
|
|
loader: 'auto-ngtemplate-loader',
|
|
options: {
|
|
pathResolver: (p) => p.replace(/src\/javascript\/.*$/, 'templates')
|
|
}
|
|
},
|
|
{
|
|
loader: 'rails-erb-loader',
|
|
options: {
|
|
runner: (/^win/.test(process.platform) ? 'ruby ' : '') + 'bin/rails runner'
|
|
}
|
|
}
|
|
]
|
|
};
|