Sha256: f7bcd1a242e6ccda6b8c484e768f3888f79ed38c87a5c4e333968a5db814f9e4
Contents?: true
Size: 578 Bytes
Versions: 3
Compression:
Stored size: 578 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: { exposes: { globalName: '$', } } }] }) environment.plugins.append('Provide', new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', "window.jQuery": 'jquery', Popper: ['popper.js', 'default'] })); module.exports = environment
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails_material_admin-0.1.9 | config/webpack/environment.js |
rails_material_admin-0.1.8 | config/webpack/environment.js |
rails_material_admin-0.1.7 | config/webpack/environment.js |