diff --git a/package.json b/package.json index fc6c89a..d1546bd 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "dev": "VERSION=dev-v$(node scripts/get-version.js) webpack --watch", "dev-safari": "TARGET=safari yarn run dev", "debug-firefox": "web-ext run --source-dir=dist --firefox-profile=firefox-profile --profile-create-if-missing --keep-profile-changes --start-url https://github.com/EnixCoda/Gitako", - "analyse-bundle": "ANALYSE= NODE_ENV=production webpack", + "analyze-bundle": "ANALYZE= NODE_ENV=production webpack", "postinstall": "node scripts/fix-deps", "preversion": "make version-safari && git add .", "build": "VERSION=v$(node scripts/get-version.js) NODE_ENV=production webpack", diff --git a/webpack.config.js b/webpack.config.js index c34aae7..5f45947 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -72,8 +72,8 @@ const plugins = [ new MiniCssExtractPlugin(), ] -const analyse = process.env.ANALYSE !== undefined -if (analyse) { +const analyze = process.env.ANALYZE !== undefined +if (analyze) { plugins.push(new BundleAnalyzerPlugin()) console.log(`BundleAnalyzerPlugin added`) }