1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/config/webpack/loaders/html_erb.js

22 lines
382 B
JavaScript
Raw Normal View History

2020-09-22 14:20:47 +02:00
const path = require('path');
module.exports = {
test: /\.html\.erb$/,
2020-09-22 14:20:47 +02:00
exclude: /node_modules/,
use: [
{
loader: 'ngtemplate-loader',
options: {
relativeTo: path.join(__dirname, '../../../app/frontend/templates'),
requireAngular: true
}
},
{
loader: 'html-loader'
},
{
loader: 'rails-erb-loader'
}
]
};