config/webpack/environment.js in cm-admin-0.3.0 vs config/webpack/environment.js in cm-admin-0.4.0
- old
+ new
@@ -1,11 +1,12 @@
const { environment } = require('@rails/webpacker')
const webpack = require('webpack')
environment.plugins.prepend('Provide',
new webpack.ProvidePlugin({
- $: 'jquery/src/jquery',
- jQuery: 'jquery/src/jquery',
+ $: 'jquery',
+ jQuery: 'jquery',
+ moment: 'moment',
Popper: ['popper.js', 'default']
})
)
module.exports = environment