Skip to content

Commit

Permalink
revert webpacker settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kaishuu0123 committed Oct 18, 2019
1 parent 474af80 commit 6c6b1d3
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions config/webpack/environment.js
Expand Up @@ -4,28 +4,30 @@ const webpack = require('webpack')
const vue = require('./loaders/vue') const vue = require('./loaders/vue')


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


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

0 comments on commit 6c6b1d3

Please sign in to comment.