Skip to content

Instantly share code, notes, and snippets.

@davidcsejtei
Created September 27, 2018 08:46
Show Gist options
  • Select an option

  • Save davidcsejtei/8d2cd14eb682fc444500a80140d2016d to your computer and use it in GitHub Desktop.

Select an option

Save davidcsejtei/8d2cd14eb682fc444500a80140d2016d to your computer and use it in GitHub Desktop.
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
const webpack = require('webpack');
module.exports = merge(common, {
devtool: 'inline-source-map',
mode: 'development',
optimization: {
splitChunks: {
cacheGroups: {
vendors: {
test: /[\\/]node_modules[\\/]/,
chunks: 'all',
priority: 1
}
}
}
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('development')
}
})
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment