{
entry: {
bundle: 'app'
vendors: ['vue']
}
plugins: {
new webpack.optimize.CommonsChunkPlugin({
name : 'vendors',
filename : 'vendors.js'
})
}
}
I want to mention vue to the public part
vue.js is about a little more than 200
The packaged vendors.js is more than 700k
Why is this?
Try this
The reason is known
devtool: 'eval-source-map',
Just replace it with
devtool: 'source-map',
and it'll be fine
After checking the information, I don’t really understand the difference between the various options of devtool