Sha256: a7ff8bf851bd3b5d0355a51ec3fbf797d7dc4940cf7d856e12dc797236840a01
Contents?: true
Size: 936 Bytes
Versions: 27
Compression:
Stored size: 936 Bytes
Contents
const webpack = require('webpack') const { environment } = require('@rails/webpacker') const jquery = require('./plugins/jquery') const { VueLoaderPlugin } = require('vue-loader') const vue = require('./loaders/vue') const ManifestPlugin = require('webpack-manifest-plugin') const customConfig = require('./custom') const babelLoader = environment.loaders.get('babel') babelLoader.exclude = [] environment.splitChunks() // Merge custom config environment.config.merge(customConfig) environment.plugins.prepend('VueLoaderPlugin', new VueLoaderPlugin()) environment.plugins.prepend('Provide', new webpack.ProvidePlugin({ $: 'jquery/src/jquery', jQuery: 'jquery/src/jquery', Popper: ['popper.js', 'default'] }) ); environment.loaders.prepend('vue', vue) environment.loaders.get('sass').use.splice(-1, 0, { loader: 'resolve-url-loader', }); environment.plugins.prepend('jquery', jquery) module.exports = environment
Version data entries
27 entries across 27 versions & 1 rubygems