mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Update to webpack version 5
This commit is contained in:
parent
ede89e683a
commit
81bdda9a9d
4 changed files with 344 additions and 693 deletions
|
@ -14,6 +14,7 @@
|
|||
"ramda": "^0.27.1",
|
||||
"rss-parser": "^3.10.0",
|
||||
"semver-compare": "^1.0.0",
|
||||
"stream-browserify": "^3.0.0",
|
||||
"tsdef": "^0.0.14",
|
||||
"typedoc-default-themes": "^0.12.0"
|
||||
},
|
||||
|
@ -55,7 +56,7 @@
|
|||
"uglifyjs-webpack-plugin": "^2.2.0",
|
||||
"web-ext": "^5.4.1",
|
||||
"web-ext-types": "^3.2.1",
|
||||
"webpack": "^4.44.2",
|
||||
"webpack": "^5.11.1",
|
||||
"webpack-cli": "^3.3.12"
|
||||
},
|
||||
"scripts": {
|
||||
|
|
|
@ -64,7 +64,7 @@ if [ "$1" != "--no-native" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
webpack --display errors-only --bail
|
||||
webpack --stats errors-only --bail
|
||||
|
||||
scripts/bodgecss.sh
|
||||
scripts/authors.sh
|
||||
|
|
|
@ -28,7 +28,16 @@ module.exports = {
|
|||
resolve: {
|
||||
// Add '.ts' and '.tsx' as resolvable extensions.
|
||||
extensions: fileExtensions,
|
||||
plugins: [new TsconfigPathsPlugin({extensions: fileExtensions})]
|
||||
plugins: [new TsconfigPathsPlugin({extensions: fileExtensions})],
|
||||
fallback: {
|
||||
"url": false,
|
||||
"fs": false,
|
||||
"https": false,
|
||||
"http": false,
|
||||
"path": false,
|
||||
"timers": false,
|
||||
"stream": require.resolve("stream-browserify"),
|
||||
},
|
||||
},
|
||||
|
||||
module: {
|
||||
|
@ -55,9 +64,4 @@ module.exports = {
|
|||
{ from: "issue_template.md" },
|
||||
]}),
|
||||
],
|
||||
// Fix css
|
||||
// https://github.com/webpack-contrib/css-loader/issues/447#issuecomment-285598881
|
||||
node: {
|
||||
fs: "empty",
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue