chore: fix typo

This commit is contained in:
EnixCoda 2022-08-20 01:04:36 +08:00
parent f32711085d
commit e575dbc8e7
2 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -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`)
}