Skip to content
Permalink
Browse files

revert webpacker settings

  • Loading branch information
kaishuu0123 committed Oct 18, 2019
1 parent 474af80 commit 6c6b1d3cba33d2aeb2884e08c98f2801432d824b
Showing with 24 additions and 22 deletions.
  1. +24 −22 config/webpack/environment.js
@@ -4,28 +4,30 @@ const webpack = require('webpack')
const vue = require('./loaders/vue')

// enable SplitChunks
environment.splitChunks((config) => {
return Object.assign({}, config, {
optimization: {
splitChunks: {
cacheGroups: {
vendor: {
test:/node_modules/,
name: 'vendor',
chunks: 'initial',
enforce: true
},
rebacklogsCommons: {
test: /app\/javascript\/commons/,
name: 'rebacklogs-commons',
chunks: 'initial',
enforce: true
}
}
}
}
})
})
environment.splitChunks()

// FIXME:
// environment.splitChunks((config) => {
// return Object.assign({}, config, {
// optimization: {
// splitChunks: {
// cacheGroups: {
// vendor: {
// test:/node_modules/,
// name: 'vendor',
// chunks: 'initial',
// enforce: true
// },
// vendorCommons: {
// test: /app\/javascript\/commons/,
// name: 'vendor-commons',
// chunks: 'initial'
// }
// }
// }
// }
// })
// })

environment.plugins.append('Provide', new webpack.ProvidePlugin({
$: 'jquery',

0 comments on commit 6c6b1d3

Please sign in to comment.
You can’t perform that action at this time.