Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1755e97

Browse files
chore: Remove webpack (#4270)
1 parent d9a61dd commit 1755e97

9 files changed

+28
-825
lines changed

site/htmlTemplates/index.html

Lines changed: 0 additions & 38 deletions
This file was deleted.

site/jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ module.exports = {
5151
"!<rootDir>/e2e/**/*.*",
5252
"!<rootDir>/jest-runner.eslint.config.js",
5353
"!<rootDir>/jest.config.js",
54-
"!<rootDir>/webpack.*.ts",
5554
"!<rootDir>/out/**/*.*",
5655
"!<rootDir>/storybook-static/**/*.*",
5756
],

site/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"scripts": {
77
"postinstall": "yarn typegen",
88
"build": "NODE_ENV=production yarn vite build",
9-
"build:analyze": "NODE_ENV=production webpack --profile --progress --json --config=webpack.prod.ts > out/stats.json && webpack-bundle-analyzer out/stats.json out",
109
"check:all": "yarn format:check && yarn lint && yarn test",
1110
"chromatic": "chromatic",
1211
"dev": "vite",
@@ -99,9 +98,7 @@
9998
"@xstate/cli": "0.3.0",
10099
"canvas": "2.10.0",
101100
"chromatic": "6.9.0",
102-
"copy-webpack-plugin": "10.2.4",
103101
"css-loader": "6.7.1",
104-
"css-minimizer-webpack-plugin": "3.4.1",
105102
"eslint": "8.23.0",
106103
"eslint-config-prettier": "8.5.0",
107104
"eslint-import-resolver-alias": "1.1.2",
@@ -114,7 +111,6 @@
114111
"eslint-plugin-react": "7.31.1",
115112
"eslint-plugin-react-hooks": "4.6.0",
116113
"eslint-plugin-unicorn": "43.0.2",
117-
"html-webpack-plugin": "5.5.0",
118114
"jest": "27.5.1",
119115
"jest-canvas-mock": "2.4.0",
120116
"jest-junit": "14.0.0",
@@ -131,10 +127,7 @@
131127
"ts-jest": "27.1.4",
132128
"ts-loader": "9.3.1",
133129
"ts-node": "10.9.1",
134-
"typescript": "4.8.2",
135-
"webpack": "5.74.0",
136-
"webpack-bundle-analyzer": "4.6.1",
137-
"webpack-cli": "4.10.0"
130+
"typescript": "4.8.2"
138131
},
139132
"browserslist": [
140133
"chrome 66",

site/site.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ type csrfState struct {
108108
func ShouldCacheFile(reqFile string) bool {
109109
// Images, favicons and uniquely content hashed bundle assets should be
110110
// cached. By default, we cache everything in the site/out directory except
111-
// for deny-listed items enumerated here. The reason for this approach is
112-
// that cache invalidation techniques should be used by default for all
113-
// webpack-processed assets. The scenarios where we don't use cache
114-
// invalidation techniques are one-offs or things that should have
115-
// invalidation in the future.
111+
// for deny-listed items enumerated here. The reason for this approach is that
112+
// cache invalidation techniques should be used by default for all build
113+
// processed assets. The scenarios where we don't use cache invalidation
114+
// techniques are one-offs or things that should have invalidation in the
115+
// future.
116116
denyListedSuffixes := []string{
117117
// ALL *.html files
118118
".html",

site/site_embed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
var site embed.FS
1414

1515
func FS() fs.FS {
16-
// the out directory is where webpack builds are created. It is in the same
16+
// the out directory is where FE builds are created. It is in the same
1717
// directory as this file (package site).
1818
out, err := fs.Sub(site, "out")
1919
if err != nil {

site/tsconfig.prod.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

site/webpack.common.ts

Lines changed: 0 additions & 119 deletions
This file was deleted.

site/webpack.prod.ts

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)