mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-02 13:24:20 +01:00
16 lines
416 B
JavaScript
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;
|