Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 4e03274

Browse files
committed
fix(webpack): remove threshold
1 parent 64be9ab commit 4e03274

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

packages/fusuma/src/webpack/webpack.prod.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ function prod() {
2424
// github pages doesn't support brotli
2525
new CompressionPlugin({
2626
test: /\.(js|css|html|svg)$/,
27-
threshold: 10240,
2827
minRatio: 0.8,
2928
}),
3029
// new webpack.optimize.AggressiveMergingPlugin() // if use this, canvas will be broken

samples/debug/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"start": "FUSUMA_DEBUG=true node ../../packages/fusuma/src/cli start",
8+
"start:prod": "FUSUMA_DEBUG=true node ../../packages/fusuma/src/cli start -f true",
89
"build": "FUSUMA_DEBUG=true node ../../packages/fusuma/src/cli build",
910
"pdf": "FUSUMA_DEBUG=true node ../../packages/fusuma/src/cli pdf",
1011
"live": "FUSUMA_DEBUG=true node ../../packages/fusuma/src/cli live -w '@nodejs'",

0 commit comments

Comments
 (0)