Skip to content

Commit 0d229ab

Browse files
committed
fix: webpack.config and package.json make use of mode=production instead of process.env
1 parent 205ac62 commit 0d229ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"scripts": {
2727
"start": "npx webpack --config webpack.config.js",
28-
"build": "NODE_ENV=production npx webpack --config webpack.config.js",
28+
"build": "npx webpack --mode=production --config webpack.config.js",
2929
"dev": "npx webpack --config webpack.config.js --watch",
3030
"postinstall": "node -e \"const { execSync } = require('child_process'); try { execSync('coc --version', { stdio: 'ignore' }); } catch (error) { try { execSync('npm install -g @cocreate/cli', { stdio: 'inherit' }); console.log('Installed \"@cocreate/cli\" globally.'); } catch (error) { console.error('Failed to install \"@cocreate/cli\" globally:', error); } }\""
3131
},

0 commit comments

Comments
 (0)