1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-02 13:24:20 +01:00
fab-manager/config/webpack/environment.js
2020-09-09 11:54:49 +02:00

16 lines
416 B
JavaScript

const { environment } = require('@rails/webpacker');
const erb = require('./loaders/erb');
const html = require('./loaders/html');
const webpack = require('webpack');
environment.plugins.prepend('Provide', new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
}));
environment.loaders.append('html', html);
environment.loaders.prepend('erb', erb);
environment.splitChunks();
module.exports = environment;