Skip to content

Commit 5b5605b

Browse files
wip(build): do not compress .ts files
1 parent 44620f6 commit 5b5605b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const configure = ({name, vueTarget, libraryTargetModule}) => (env = {}, { mode
196196
...!noCompress ? [
197197
new CompressionPlugin({
198198
filename: "[path][base].br",
199-
exclude: /\.map$/,
199+
exclude: [ /\.map$/, /\.ts$/ ],
200200
algorithm: "brotliCompress",
201201
compressionOptions: {
202202
params: {
@@ -206,7 +206,7 @@ const configure = ({name, vueTarget, libraryTargetModule}) => (env = {}, { mode
206206
}),
207207
new CompressionPlugin({
208208
filename: "[path][base].gz",
209-
exclude: /\.map$/,
209+
exclude: [ /\.map$/, /\.ts$/ ],
210210
algorithm: "gzip",
211211
compressionOptions: {
212212
level: 9,

0 commit comments

Comments
 (0)