Skip to content

Commit 6d791a5

Browse files
committed
exclude license
1 parent 9c5d5f9 commit 6d791a5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

webpack.prod.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ module.exports = env => merge(common(env), {
4848
swSrc: path.join(__dirname, 'src/sw.js'),
4949
swDest: 'sw.js',
5050
// match [name].[contenthash].[ext]
51-
dontCacheBustURLsMatching: /\.[0-9a-f]{20}\./
51+
dontCacheBustURLsMatching: /\.[0-9a-f]{20}\./,
52+
// exclude license
53+
exclude: [
54+
/license\.txt/i
55+
]
5256
})
5357
]
5458
});

0 commit comments

Comments
 (0)