Skip to content

Commit

Permalink
upgrade webpack-cli to 4.0.0-rc
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Sep 26, 2020
1 parent a2d66ee commit 5664a0f
Show file tree
Hide file tree
Showing 3 changed files with 896 additions and 64 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dev-admin": "yarn tsnd adminSite/server/app.tsx",
"tsnd:inspect": "ts-node-dev --inspect --transpileOnly --respawn --no-notify --no-deps -r tsconfig-paths/register -r source-map-support/register -r dotenv/config",
"dev-admin:inspect": "yarn tsnd:inspect adminSite/server/app.tsx",
"dev-webpack": "webpack-dev-server -d",
"dev-webpack": "webpack serve --mode development --devtool cheap-module-source-map",
"dev": "npm-run-all --race --parallel dev-admin dev-webpack",
"dev-tmux": "tmex dev \"yarn tsn adminSite/server/app.tsx\" \"yarn dev-webpack\"",
"typeorm": "yarn tsn node_modules/.bin/typeorm",
Expand All @@ -23,7 +23,7 @@
"prettify-all": "yarn prettier --write \"**/*.{tsx,ts,jsx,js,json,md,html,css,scss,yml,php}\"",
"prettify-all:check": "yarn prettier --check \"**/*.{tsx,ts,jsx,js,json,md,html,css,scss,yml,php}\"",
"typecheck": "tsc --noEmit",
"build": "rm -rf dist && ENV=production webpack -p --progress",
"build": "rm -rf dist && ENV=production webpack --mode production --progress",
"test": "jest",
"test-watch": "jest --watchAll",
"test-single-process": "jest --maxWorkers=1",
Expand All @@ -39,8 +39,8 @@
"deploy-queue": "yarn tsn deploy/watch.ts",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook -o .storybook/build",
"bundlewatch": "ENV=production webpack -p && bundlewatch --config .bundlewatch.config.json",
"bundlewatch-json": "ENV=production webpack -p --json > dist/webpack-bundle-stats.json && bundlewatch --config .bundlewatch.config.json",
"bundlewatch": "ENV=production webpack --mode production && bundlewatch --config .bundlewatch.config.json",
"bundlewatch-json": "ENV=production webpack --mode production --json > dist/webpack-bundle-stats.json && bundlewatch --config .bundlewatch.config.json",
"live-commit": "yarn tsn deploy/liveCommit.ts"
},
"dependencies": {
Expand Down Expand Up @@ -207,7 +207,7 @@
"url-parse": "^1.4.7",
"url-slug": "^3.0.0-beta.1",
"webpack": "5.0.0-rc.0",
"webpack-cli": "3.3.12",
"webpack-cli": "4.0.0-rc.0",
"webpack-dev-server": "^3.11.0",
"webpack-manifest-plugin": "3.0.0-rc.0",
"xlsx": "^0.14.3"
Expand Down
3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ module.exports = (env, argv) => {
minimize: isProduction,
minimizer: [new TerserJSPlugin(), new OptimizeCSSAssetsPlugin()],
},
performance: {
hints: false,
},
output: {
path: path.join(__dirname, "dist/webpack"),
filename: "js/[name].js",
Expand Down
Loading

0 comments on commit 5664a0f

Please sign in to comment.