diff --git a/.changeset/many-chairs-add.md b/.changeset/many-chairs-add.md new file mode 100644 index 000000000..171e391f4 --- /dev/null +++ b/.changeset/many-chairs-add.md @@ -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. diff --git a/lerna.json b/lerna.json index 4233352f1..c570504a9 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "lerna": "3.13.1", - "version": "3.0.1", + "version": "3.0.3", "packages": ["packages/*"], "npmClient": "yarn", "useWorkspaces": true diff --git a/packages/cli/lib/lib/webpack/webpack-server-config.js b/packages/cli/lib/lib/webpack/webpack-server-config.js index 3e69dc58a..1a1b6815f 100644 --- a/packages/cli/lib/lib/webpack/webpack-server-config.js +++ b/packages/cli/lib/lib/webpack/webpack-server-config.js @@ -1,5 +1,4 @@ const { resolve } = require('path'); -const SizePlugin = require('size-plugin'); const merge = require('webpack-merge'); const baseConfig = require('./webpack-base-config'); @@ -24,9 +23,6 @@ function serverConfig(env) { async: resolve(__dirname, './dummy-loader'), }, }, - plugins: [ - new SizePlugin({ filename: 'size-plugin-ssr.json' }), - ] }; } diff --git a/packages/cli/package.json b/packages/cli/package.json index 260a496d0..36c87d2fc 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "preact-cli", - "version": "3.0.2", + "version": "3.0.3", "description": "Start building a Preact Progressive Web App in seconds.", "repository": "preactjs/preact-cli", "main": "lib/index.js",