Skip to content

Commit

Permalink
refactor: Remove size tracking of SSR build (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Sep 28, 2020
1 parent 172e9ec commit ab84275
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-chairs-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'preact-cli': patch
---

This disable SSR size tracking. This stops `size-plugin-ssr.json` from being generated and stops file sizes from being reported to the developer.
4 changes: 0 additions & 4 deletions packages/cli/lib/lib/webpack/webpack-server-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { resolve } = require('path');
const SizePlugin = require('size-plugin');
const merge = require('webpack-merge');
const baseConfig = require('./webpack-base-config');

Expand All @@ -24,9 +23,6 @@ function serverConfig(env) {
async: resolve(__dirname, './dummy-loader'),
},
},
plugins: [
new SizePlugin({ filename: 'size-plugin-ssr.json' }),
]
};
}

Expand Down

0 comments on commit ab84275

Please sign in to comment.