Skip to content

Commit a563c53

Browse files
committed
fix: webpack.config and package.json make use of mode=production instead of process.env
1 parent 1e012b3 commit a563c53

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
@@ -26,7 +26,7 @@
2626
},
2727
"scripts": {
2828
"start": "npx webpack --config webpack.config.js",
29-
"build": "NODE_ENV=production npx webpack --config webpack.config.js",
29+
"build": "npx webpack --mode=production --config webpack.config.js",
3030
"dev": "npx webpack --config webpack.config.js --watch",
3131
"postinstal": "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); } }\""
3232
},

0 commit comments

Comments
 (0)