Skip to content

Commit

Permalink
fix(examples/webpack): simplify webpack scripts in minimal example
Browse files Browse the repository at this point in the history
Remove unnecessary ts-node config wrapper from most webpack commands to make
the example more straightforward and easier to understand. Only keep the
ts-node config for watch command where it's needed.
  • Loading branch information
ryoppippi committed Feb 4, 2025
1 parent 4ec795d commit 629b5a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
11 changes: 5 additions & 6 deletions examples/webpack-minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
"workbox-webpack-plugin": "^7.3.0"
},
"scripts": {
"build": "npm run register-config-webpack-to-ts-node webpack --mode=production --node-env=production",
"build:dev": "npm run register-config-webpack-to-ts-node webpack --mode=development",
"build:prod": "npm run register-config-webpack-to-ts-node webpack --mode=production --node-env=production",
"watch": "npm run register-config-webpack-to-ts-node webpack --watch",
"serve": "npm run register-config-webpack-to-ts-node webpack serve",
"register-config-webpack-to-ts-node": "cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack-config.json\"",
"build": "webpack --mode=production --node-env=production",
"build:dev": "webpack --mode=development",
"build:prod": "webpack --mode=production --node-env=production",
"watch": "register-config-webpack-to-ts-node webpack --watch",
"serve": "webpack serve",
"prepare": "ts-patch install && typia patch"
},
"dependencies": {
Expand Down
12 changes: 0 additions & 12 deletions examples/webpack-minimal/tsconfig-for-webpack-config.json

This file was deleted.

0 comments on commit 629b5a3

Please sign in to comment.