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

Skip to content

chore: Remove webpack #4270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions site/htmlTemplates/index.html

This file was deleted.

1 change: 0 additions & 1 deletion site/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ module.exports = {
"!<rootDir>/e2e/**/*.*",
"!<rootDir>/jest-runner.eslint.config.js",
"!<rootDir>/jest.config.js",
"!<rootDir>/webpack.*.ts",
"!<rootDir>/out/**/*.*",
"!<rootDir>/storybook-static/**/*.*",
],
Expand Down
9 changes: 1 addition & 8 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"scripts": {
"postinstall": "yarn typegen",
"build": "NODE_ENV=production yarn vite build",
"build:analyze": "NODE_ENV=production webpack --profile --progress --json --config=webpack.prod.ts > out/stats.json && webpack-bundle-analyzer out/stats.json out",
"check:all": "yarn format:check && yarn lint && yarn test",
"chromatic": "chromatic",
"dev": "vite",
Expand Down Expand Up @@ -99,9 +98,7 @@
"@xstate/cli": "0.3.0",
"canvas": "2.10.0",
"chromatic": "6.9.0",
"copy-webpack-plugin": "10.2.4",
"css-loader": "6.7.1",
"css-minimizer-webpack-plugin": "3.4.1",
"eslint": "8.23.0",
"eslint-config-prettier": "8.5.0",
"eslint-import-resolver-alias": "1.1.2",
Expand All @@ -114,7 +111,6 @@
"eslint-plugin-react": "7.31.1",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-unicorn": "43.0.2",
"html-webpack-plugin": "5.5.0",
"jest": "27.5.1",
"jest-canvas-mock": "2.4.0",
"jest-junit": "14.0.0",
Expand All @@ -131,10 +127,7 @@
"ts-jest": "27.1.4",
"ts-loader": "9.3.1",
"ts-node": "10.9.1",
"typescript": "4.8.2",
"webpack": "5.74.0",
"webpack-bundle-analyzer": "4.6.1",
"webpack-cli": "4.10.0"
"typescript": "4.8.2"
},
"browserslist": [
"chrome 66",
Expand Down
10 changes: 5 additions & 5 deletions site/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ type csrfState struct {
func ShouldCacheFile(reqFile string) bool {
// Images, favicons and uniquely content hashed bundle assets should be
// cached. By default, we cache everything in the site/out directory except
// for deny-listed items enumerated here. The reason for this approach is
// that cache invalidation techniques should be used by default for all
// webpack-processed assets. The scenarios where we don't use cache
// invalidation techniques are one-offs or things that should have
// invalidation in the future.
// for deny-listed items enumerated here. The reason for this approach is that
// cache invalidation techniques should be used by default for all build
// processed assets. The scenarios where we don't use cache invalidation
// techniques are one-offs or things that should have invalidation in the
// future.
denyListedSuffixes := []string{
// ALL *.html files
".html",
Expand Down
2 changes: 1 addition & 1 deletion site/site_embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
var site embed.FS

func FS() fs.FS {
// the out directory is where webpack builds are created. It is in the same
// the out directory is where FE builds are created. It is in the same
// directory as this file (package site).
out, err := fs.Sub(site, "out")
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions site/tsconfig.prod.json

This file was deleted.

119 changes: 0 additions & 119 deletions site/webpack.common.ts

This file was deleted.

75 changes: 0 additions & 75 deletions site/webpack.prod.ts

This file was deleted.

Loading