Skip to content

Commit b4e32ac

Browse files
author
Lionel Bijaoui
committed
Build size optimization
- Use lodash-webpack-plugin for even better size - full 186 Ko -> 168 Ko - core 160 Ko -> 142 Ko
1 parent d876955 commit b4e32ac

File tree

7 files changed

+161
-161
lines changed

7 files changed

+161
-161
lines changed

build/webpack.build.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const banner =
1111
" * Released under the MIT License.\n" +
1212
" */\n";
1313
const ExtractTextPlugin = require("extract-text-webpack-plugin");
14+
const LodashModuleReplacementPlugin = require("lodash-webpack-plugin");
1415
const StatsPlugin = require("stats-webpack-plugin");
1516
const vueLoaderConfig = require("./vue-loader.conf");
1617

@@ -72,6 +73,7 @@ module.exports = [
7273
NODE_ENV: JSON.stringify("production")
7374
}
7475
}),
76+
new LodashModuleReplacementPlugin(),
7577
new webpack.optimize.UglifyJsPlugin({
7678
compress: {
7779
warnings: false

dist/vfg-core.css

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vfg-core.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)