mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-02 20:30:17 -06:00
Run webpack in production mode when building for releases. Fixes #2660
This commit is contained in:
1 parent
512afd6618
commit
120dbcc7d8
3 files changed
+7
-6
No files matched your search
+3
-6
@@ -85,14 +85,11 @@
|
||||
},
|
||||
"scripts": {
|
||||
"linter": "yarn run eslint pgadmin/static/jsx/**/*.jsx pgadmin/static/js/selection/*.js regression/javascript/**/*.jsx regression/javascript/**/*.js *.js",
|
||||
"webpacker": "yarn run webpack -- --config webpack.config.js",
|
||||
"webpacker": "yarn run webpack -- --config webpack.config.js --progress",
|
||||
"webpacker:watch": "yarn run webpack -- --config webpack.config.js --progress --watch",
|
||||
"webpacker:dev": "yarn run webpack -- --config webpack.config.js",
|
||||
"webpacker:prod": "yarn run linter && yarn run webpack -- --config webpack.config.js",
|
||||
"bundle": "yarn run linter && yarn run webpacker",
|
||||
"bundle:watch": "yarn run linter && yarn run webpacker:watch",
|
||||
"bundle:dev": "yarn run linter && yarn run webpacker:dev",
|
||||
"bundle:prod": "cross-env NODE_ENV=production yarn run webpacker:prod",
|
||||
"bundle:dev": "yarn run linter && yarn run webpacker",
|
||||
"bundle": "cross-env NODE_ENV=production yarn run bundle:dev",
|
||||
"test:karma-once": "yarn run linter && yarn run karma start -- --single-run",
|
||||
"test:karma": "yarn run linter && yarn run karma start",
|
||||
"test:feature": "yarn run bundle && python regression/runtests.py --pkg feature_tests",
|
||||
|
||||
@@ -319,6 +319,7 @@ module.exports = {
|
||||
optimizeAssetsPlugin,
|
||||
definePlugin,
|
||||
hardSourceWebpackPlugin,
|
||||
sourceMapDevToolPlugin,
|
||||
]: [
|
||||
extractSass,
|
||||
extractStyle,
|
||||
|
||||
Reference in new issue
Block a user