Sha256: 2ee35c4508771de9c7a54c22408d1873d5d2d3696b5722221a1b09cdc1952bb5
Contents?: true
Size: 524 Bytes
Versions: 7
Compression:
Stored size: 524 Bytes
Contents
const { environment } = require('@rails/webpacker') const webpack = require('webpack'); environment.loaders.get('sass').use.splice(-1, 0, { loader: 'resolve-url-loader' }); environment.loaders.append('expose-loader', { test: require.resolve('jquery'), use: [{ loader: 'expose-loader', options: '$' }] }) environment.plugins.append('Provide', new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', "window.jQuery": 'jquery', Popper: ['popper.js', 'default'] })); module.exports = environment
Version data entries
7 entries across 7 versions & 1 rubygems