1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-18 12:54:27 +01:00
fab-manager/config/webpack/environment.js

16 lines
416 B
JavaScript
Raw Normal View History

const { environment } = require('@rails/webpacker');
2020-09-09 11:54:49 +02:00
const erb = require('./loaders/erb');
const html = require('./loaders/html');
const webpack = require('webpack');
2020-09-09 11:54:49 +02:00
environment.plugins.prepend('Provide', new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
}));
2020-09-09 11:54:49 +02:00
environment.loaders.append('html', html);
environment.loaders.prepend('erb', erb);
2020-09-09 08:51:53 +02:00
environment.splitChunks();
module.exports = environment;