Skip to content
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

use webpack 5 #3963

Merged
merged 102 commits into from
Oct 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
391eaf7
remove @mdx-js/mdx from devDependencies
chenxsan Sep 8, 2020
e9b473e
upgrade @mdx-js/loader to 0.16.8
chenxsan Sep 8, 2020
72d9293
upgrade @mdx-js/loader to v1
chenxsan Sep 8, 2020
474f59b
replace deprecated mdxjs option
chenxsan Sep 8, 2020
43a8888
upgrade file-loader
chenxsan Sep 8, 2020
706edb4
fix option for file-loader
chenxsan Sep 8, 2020
843a122
fix object Module problem
chenxsan Sep 8, 2020
2d35d51
upgrade mini-css-extract-plugin
chenxsan Sep 8, 2020
24b09c6
upgrade style-loader
chenxsan Sep 9, 2020
dc6d618
use style-loader for non production environment
chenxsan Sep 9, 2020
f882003
upgrade css-loader
chenxsan Sep 9, 2020
6c76e4f
upgrade autoprefixer
chenxsan Sep 9, 2020
9ed798a
upgrade postcss-loader
chenxsan Sep 9, 2020
2dc108e
upgrade sass-loader
chenxsan Sep 9, 2020
da25089
upgrade remark-loader
chenxsan Sep 9, 2020
ad8c42b
clean uglifyjs-webpack-plugin
chenxsan Sep 9, 2020
f2226b3
upgrade copy-webpack-plugin
chenxsan Sep 9, 2020
338794b
upgrade terser-webpack-plugin
chenxsan Sep 9, 2020
695baac
upgrade mkdirp
chenxsan Sep 9, 2020
fa5f345
upgrade @octokit/rest
chenxsan Sep 10, 2020
e1ed971
upgrade rimraf
chenxsan Sep 10, 2020
0d5d083
clean whatwg-fetch
chenxsan Sep 10, 2020
37d9093
upgrade webpack-merge
chenxsan Sep 10, 2020
b43f41a
upgrade bundlesize
chenxsan Sep 10, 2020
73384d2
upgrade jest
chenxsan Sep 10, 2020
c5fbd75
upgrade cross-env
chenxsan Sep 10, 2020
aad8b3b
upgrade gh-pages
chenxsan Sep 10, 2020
337c39e
upgrade lint-staged
chenxsan Sep 10, 2020
831ea43
upgrade cypress
chenxsan Sep 10, 2020
3ba57e3
upgrade husky
chenxsan Sep 10, 2020
12aa498
upgrade sirv-cli
chenxsan Sep 10, 2020
56057bd
clean through2
chenxsan Sep 10, 2020
8a4c4c9
upgrade markdownlint
chenxsan Sep 10, 2020
d5cce63
upgrade directory-tree
chenxsan Sep 10, 2020
6615196
upgrade http-server
chenxsan Sep 10, 2020
2a3b1b3
upgrade redirect-webpack-plugin
chenxsan Sep 10, 2020
86b1fde
upgrade eslint-loader
chenxsan Sep 10, 2020
292596c
upgrade front-matter
chenxsan Sep 10, 2020
7bf8086
clean handlebars
chenxsan Sep 10, 2020
26a0cad
remove ajv
chenxsan Sep 10, 2020
02e80ef
remove loader-utils
chenxsan Sep 10, 2020
c6fe779
upgrade react-tiny-popover
chenxsan Sep 10, 2020
4355744
upgrade remark-slug
chenxsan Sep 10, 2020
6e0daa9
upgrade remark-autolink-headings
chenxsan Sep 10, 2020
386dcf1
upgrade remark-mardown
chenxsan Sep 10, 2020
0fe5cb7
upgrade react-router-dom
chenxsan Sep 10, 2020
97728f8
upgrade html-webpack-plugin
chenxsan Sep 10, 2020
d0d6745
replace eslint-loader with eslint-webpack-plugin
chenxsan Sep 10, 2020
c5b3b16
upgrade webpack to v5
chenxsan Sep 10, 2020
d3d975d
fix this.exec issue
chenxsan Sep 11, 2020
32ddf02
define process.env.RESET_APP_DATA_TIMER
chenxsan Sep 11, 2020
96ef524
use ''
chenxsan Sep 11, 2020
2ce382f
use css-minimizer-webpack-plugin
chenxsan Sep 11, 2020
fdb8c1d
disable minimize temporarily
chenxsan Sep 11, 2020
14af1ec
update terser-webpack-plugin
chenxsan Sep 11, 2020
4123299
Revert "update terser-webpack-plugin"
chenxsan Sep 11, 2020
7739d0e
upgrade terser-webpack-plugin
chenxsan Sep 12, 2020
0b3920b
upgrade webpack 5
chenxsan Sep 12, 2020
4fd1103
replace offline-plugin with workbox-webpack-plugin
chenxsan Sep 12, 2020
f410362
output sw.js
chenxsan Sep 14, 2020
6120e41
add runtimeCaching
chenxsan Sep 14, 2020
64ff1e9
remove avatar
chenxsan Sep 14, 2020
8b81450
upgrade webpack
chenxsan Sep 14, 2020
30efd04
upgrade webpack
chenxsan Sep 17, 2020
e0602d0
upgrade mini-css-extract-plugin
chenxsan Sep 17, 2020
16e6b61
fix entries order
chenxsan Sep 18, 2020
668919e
fix ci
chenxsan Sep 18, 2020
39e064d
remove dependOn
chenxsan Sep 18, 2020
3ae2307
enable cache true for production
chenxsan Sep 18, 2020
f878355
fix cache
chenxsan Sep 18, 2020
adf2324
Register service worker on for production
chenxsan Sep 18, 2020
a735c05
replace react-hot-loader
chenxsan Sep 18, 2020
7297774
fix warning for development
chenxsan Sep 18, 2020
75ef8b3
optimize images
chenxsan Sep 18, 2020
4bc65a2
fix cli warning
chenxsan Sep 18, 2020
1d16796
enable asset module for images
chenxsan Sep 18, 2020
e78c763
Merge branch 'master' into feature/use-webpack5
EugeneHlushko Sep 24, 2020
244c982
remove eslint-loader
chenxsan Sep 24, 2020
1f86d8b
add link to algoliasearch issue
chenxsan Sep 24, 2020
19eac76
enable skipWaiting
chenxsan Sep 24, 2020
00217de
cache css
chenxsan Sep 24, 2020
a2133b0
set navigateFallback to /app-shell/
chenxsan Sep 24, 2020
47e5fe4
enable clientsClaim
chenxsan Sep 24, 2020
4f23580
cache more
chenxsan Sep 24, 2020
8368b4d
fix workbox warnings
chenxsan Sep 24, 2020
6cbcb9f
upgrade webpack to rc
chenxsan Sep 24, 2020
f2591e0
clean runtimeCaching rule
chenxsan Sep 24, 2020
ffec17f
use apple-touch-icon
chenxsan Sep 25, 2020
bb63248
remove runtimeCaching rule
chenxsan Sep 27, 2020
1bc6fa1
prepend publicPath
chenxsan Sep 27, 2020
de5557e
use contenthash
chenxsan Sep 27, 2020
8184363
set revision
chenxsan Sep 27, 2020
8dc6cc4
Merge branch 'master' into feature/use-webpack5
chenxsan Sep 29, 2020
51f3f03
Merge branch 'master' into feature/use-webpack5
chenxsan Sep 30, 2020
4eff9ce
Merge branch 'master' into feature/use-webpack5
chenxsan Oct 8, 2020
ded2b6b
upgrade webpack
chenxsan Oct 8, 2020
0bbe110
upgrade mini-css-extract-plugin
chenxsan Oct 8, 2020
64c7acb
configuration improvements
sokra Oct 9, 2020
dde901d
Merge branch 'master' into feature/use-webpack5
sokra Oct 9, 2020
efe58a4
fix link
sokra Oct 9, 2020
ee67208
fix duplicate service worker entries
sokra Oct 9, 2020
749d081
remove eslint-plugin from build
sokra Oct 9, 2020
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
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"env": {
"development": {
"plugins": [
"react-hot-loader/babel"
"react-refresh/babel"
]
}
}
Expand Down
101 changes: 48 additions & 53 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"clean-printable": "rimraf src/content/**/printable.md",
"preclean": "run-s clean-dist clean-printable",
"clean": "rimraf src/content/**/_*.md src/**/_*.json repositories/*.json",
"start": "npm run clean-dist && cross-env NODE_ENV=development webpack-dev-server --config webpack.dev.js --env.dev",
"start": "npm run clean-dist && cross-env NODE_ENV=development webpack-dev-server --config webpack.dev.js --env.dev --progress",
"content": "node src/scripts/build-content-tree.js ./src/content ./src/_content.json",
"bundle-analyze": "run-s clean fetch printable content && cross-env NODE_ENV=production webpack --config webpack.ssg.js && run-s clean-printable content && cross-env NODE_ENV=production webpack --config webpack.prod.js --profile --json > stats.json && webpack-bundle-analyzer stats.json",
"fetch-repos": "node src/utilities/fetch-package-repos.js",
Expand Down Expand Up @@ -84,97 +84,92 @@
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/preset-env": "^7.11.5",
"@babel/preset-react": "^7.10.4",
"@mdx-js/loader": "0.15.7",
"@mdx-js/mdx": "0.15.7",
"@octokit/rest": "^16.27.1",
"@mdx-js/loader": "^1.6.16",
"@octokit/rest": "^18.0.5",
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.2",
"alex": "^5.1.0",
"autoprefixer": "^7.2.3",
"autoprefixer": "^9.8.6",
"babel-loader": "^8.1.0",
"bundlesize": "^0.17.1",
"copy-webpack-plugin": "4.5.2",
"cross-env": "5.2.0",
"css-loader": "^0.28.10",
"cypress": "^4.5.0",
"directory-tree": "2.2.0",
"directory-tree-webpack-plugin": "0.3",
"bundlesize": "^0.18.0",
"copy-webpack-plugin": "^6.1.0",
"cross-env": "^7.0.2",
"css-loader": "^4.3.0",
"css-minimizer-webpack-plugin": "^1.1.3",
"cypress": "^5.3.0",
"directory-tree": "^2.2.4",
"directory-tree-webpack-plugin": "^1.0.2",
"duplexer": "^0.1.1",
"eslint": "^7.8.1",
"eslint-loader": "^2.0.0",
"eslint-plugin-cypress": "^2.10.3",
"eslint-plugin-markdown": "^1.0.2",
"file-loader": "^1.1.11",
"fontgen-loader": "git://github.com/EugeneHlushko/fontgen-loader.git#0.1.3",
"front-matter": "^2.3.0",
"gh-pages": "^1.0.0",
"html-webpack-plugin": "^3.2.0",
"html-webpack-template": "^6.1.0",
"http-server": "^0.10.0",
"husky": "^1.0.0-rc.8",
"file-loader": "^6.1.0",
"fontgen-loader": "git://github.com/chenxsan/fontgen-loader.git#bugfix/fix-this-exec",
"front-matter": "^4.0.2",
"gh-pages": "^3.1.0",
"html-loader": "^1.3.0",
"html-webpack-plugin": "^4.4.1",
"http-server": "^0.12.3",
"husky": "^4.3.0",
"hyperlink": "^4.5.3",
"jest": "^23.6.0",
"lint-staged": "^8.1.0",
"loader-utils": "^1.1.0",
"jest": "^26.4.2",
"lint-staged": "^10.3.0",
"lodash": "^4.17.19",
"markdownlint": "^0.11.0",
"markdownlint-cli": "^0.13.0",
"markdownlint": "^0.20.4",
"markdownlint-cli": "^0.23.2",
"markdownlint-rule-emphasis-style": "^1.0.0",
"mini-css-extract-plugin": "^0.5.0",
"mini-css-extract-plugin": "^0.12.0",
"minimist": "1.2.3",
"mkdirp": "^0.5.1",
"mkdirp": "^1.0.4",
"modularscale-sass": "^3.0.3",
"node-sass": "^4.5.3",
"npm-run-all": "^4.1.1",
"offline-plugin": "^5.0.7",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"postcss-loader": "^2.1.3",
"redirect-webpack-plugin": "^0.1.1",
"remark": "^10.0.1",
"remark-autolink-headings": "5.2.1",
"postcss": "^7.0.32",
"postcss-loader": "^4.0.1",
"react-refresh": "^0.8.3",
"redirect-webpack-plugin": "^1.0.0",
"remark": "^12.0.1",
"remark-autolink-headings": "^6.0.1",
"remark-custom-blockquotes": "1.0.0",
"remark-extract-anchors": "1.1.1",
"remark-loader": "^0.3.0",
"remark-html": "^12.0.0",
"remark-loader": "^1.0.0",
"remark-refractor": "git://github.com/montogeek/remark-refractor.git",
"remark-responsive-tables": "1.0.0",
"remark-slug": "^5.0.0",
"remark-slug": "^6.0.0",
"request-promise": "4.2.4",
"rimraf": "^2.6.2",
"sass-loader": "^6.0.6",
"sirv-cli": "^0.1.2",
"rimraf": "^3.0.2",
"sass-loader": "^10.0.2",
"sirv-cli": "^1.0.6",
"sitemap-static": "^0.4.2",
"start-server-and-test": "^1.11.0",
"static-site-generator-webpack-plugin": "^3.4.1",
"style-loader": "^0.18.2",
"style-loader": "^1.2.1",
"tap-spot": "^1.1.1",
"terser-webpack-plugin": "^2.3.5",
"through2": "^2.0.3",
"uglifyjs-webpack-plugin": "^1.1.6",
"webpack": "^4.42.0",
"terser-webpack-plugin": "^4.1.0",
"webpack": "^5.0.0-rc.4",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^3.2.3",
"webpack-dev-server": "^3.2.1",
"webpack-merge": "^4.1.0"
"webpack-merge": "^5.1.4",
"workbox-webpack-plugin": "^5.1.4"
},
"dependencies": {
"ajv": "^5.5.2",
"docsearch.js": "^2.5.2",
"gitter-sidecar": "^1.2.3",
"handlebars": "4.5.3",
"javascriptstuff-db": "^1.12.0",
"lodash.throttle": "^4.1.1",
"path-browserify": "^1.0.1",
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react-banner": "^1.0.0-rc.0",
"react-document-title": "^2.0.3",
"react-dom": "^16.8.6",
"react-g-analytics": "0.4.2",
"react-hot-loader": "^4.0.0-beta.12",
"react-markdown": "4.2.2",
"react-router-dom": "^4.2.2",
"react-tiny-popover": "3.4.2",
"react-router-dom": "^5.2.0",
"react-tiny-popover": "5",
"react-visibility-sensor": "^5.0.2",
"webpack-pwa-manifest": "^4.0.0",
"webpack.vote": "https://github.com/webpack/voting-app.git",
"whatwg-fetch": "^2.0.3"
"webpack.vote": "https://github.com/webpack/voting-app.git"
},
"resolutions": {
"remark-responsive-tables": "git://github.com/chenxsan/remark-responsive-tables.git#bugfix/fix-empty-head"
Expand Down
Binary file modified src/assets/ag-grid-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/by.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/cc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/icon-print.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/icon-pwa-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/icon-square-big.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/icon-square-small-slack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/icon-square-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading