Skip to content

Commit 2e4890f

Browse files
committed
omit original JSON in output
1 parent afe134b commit 2e4890f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

webpack.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ module.exports = (env) => {
9999
new CopyPlugin({
100100
patterns: [
101101
{from: 'icons', to: 'icons', context: '.'},
102-
{from: 'data', to: 'data', context: '.', globOptions: { ignore: ['bluegem.json'] }},
102+
{from: 'data', to: 'data', context: '.', globOptions: { ignore: ['bluegem.json'] } },
103103
{from: 'src/global.css', to: 'src/', context: '.'},
104104
{from: 'src/background_ff.html', to: 'src/', context: '.'},
105105
{from: 'src/steamcommunity_ruleset.json', to: 'src/', context: '.'},
@@ -151,9 +151,7 @@ module.exports = (env) => {
151151
filename: "[path][base].gz", // Change extension to .gz
152152
algorithm: "gzip", // Use gzip algorithm
153153
test: /bluegem\.json$/,
154-
threshold: 0, // Compress all files regardless of size
155-
minRatio: Infinity, // Compress regardless of the compression ratio achieved
156-
deleteOriginalAssets: false,
154+
deleteOriginalAssets: true,
157155
}),
158156
],
159157
stats: {

0 commit comments

Comments
 (0)