Skip to content

Commit

Permalink
feat: Reduced bundle size from 126 -> 108 kb gzip with all dependenci…
Browse files Browse the repository at this point in the history
…es bundled
  • Loading branch information
d4rkr00t committed Feb 24, 2018
1 parent 12b9447 commit e254f40
Show file tree
Hide file tree
Showing 6 changed files with 190 additions and 167 deletions.
9 changes: 8 additions & 1 deletion .build/webpack.config.umd.js
@@ -1,5 +1,7 @@
const path = require("path");
const webpack = require("webpack");
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin;

module.exports = {
entry: "./src",
Expand All @@ -13,7 +15,12 @@ module.exports = {
new webpack.optimize.UglifyJsPlugin({
compress: { warnings: false }
}),
new webpack.DefinePlugin({ "process.env.NODE_ENV": '"production"' })
new webpack.DefinePlugin({ "process.env.NODE_ENV": '"production"' }),
new BundleAnalyzerPlugin({
analyzerMode: "static",
defaultSizes: "gzip",
generateStatsFile: true
})
],
module: {
rules: [
Expand Down

0 comments on commit e254f40

Please sign in to comment.