mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
Speedup webpack boundles generation
we don't use moment locale and prefetch will speed up bundle generation
This commit is contained in:
@@ -15,10 +15,13 @@ const config = {
|
||||
filename: "[name].[chunkhash].js"
|
||||
},
|
||||
plugins: [
|
||||
new webpack.PrefetchPlugin(path.join(__dirname, "assets/static/unsee.js")), // eslint-disable-line
|
||||
new webpack.PrefetchPlugin(path.join(__dirname, "assets/static/help.js")), // eslint-disable-line
|
||||
new webpack.ProvidePlugin({
|
||||
$: "jquery",
|
||||
jQuery: "jquery"
|
||||
}),
|
||||
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
||||
new CleanWebpackPlugin([ "assets/static/dist" ]),
|
||||
new webpack.optimize.CommonsChunkPlugin({
|
||||
name: "shared"
|
||||
|
||||
Reference in New Issue
Block a user