Skip to content

Commit

Permalink
chore(website): i need some sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Oct 10, 2019
1 parent 0c86cdf commit 873ddc2
Show file tree
Hide file tree
Showing 2 changed files with 628 additions and 4 deletions.
4 changes: 3 additions & 1 deletion website/saber-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ const { MEASURE_SPEED, NODE_ENV, BUNDLE_ANALYZER_TOKEN } = process.env

exports.getWebpackConfig = (config, { type }) => {
if (type === 'client' && NODE_ENV === 'production' && BUNDLE_ANALYZER_TOKEN) {
const BundleAnalyzer = require('@bundle-analyzer/webpack-plugin')

config.plugins.push(
require('@bundle-analyzer/webpack-plugin')({
new BundleAnalyzer({
token: BUNDLE_ANALYZER_TOKEN
})
)
Expand Down
Loading

0 comments on commit 873ddc2

Please sign in to comment.