comparison config/webpack/environment.js @ 468:802dcd44188e

Now with webpacker
author nanaya <me@nanaya.pro>
date Sun, 23 Feb 2020 20:23:09 +0900
parents
children 68231013b01b
comparison
equal deleted inserted replaced
467:fd3078b4d355 468:802dcd44188e
1 const { environment } = require('@rails/webpacker')
2 const coffee = require('./loaders/coffee')
3
4 const webpack = require('webpack')
5 environment.plugins.append('Provide',
6 new webpack.ProvidePlugin({
7 $: 'jquery',
8 jQuery: 'jquery',
9 Popper: ['popper.js', 'default']
10 })
11 )
12
13 environment.loaders.prepend('coffee', coffee)
14 module.exports = environment