aboutsummaryrefslogtreecommitdiff
blob: d29c52ec3959a94a4f54c5b6e52a3570afa4e0d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const { environment } = require('@rails/webpacker')

// resolve-url-loader must be used before sass-loader
environment.loaders.get('sass').use.splice(-1, 0, {
  loader: 'resolve-url-loader'
});

const webpack = require('webpack')
environment.plugins.append('Provide', new webpack.ProvidePlugin({
  $: 'jquery/dist/jquery',
  jQuery: 'jquery/dist/jquery',
  Popper: ['popper.js', 'default']
}))


module.exports = environment