Skip to content

Commit 28c846b

Browse files
committed
Make build output ascii-only to resolve invalid regex issue
Something changed in MediaWiki so that its parser/sanitizer now does some sort of pre-save transform mangling some unicode characters – resulting in `Uncaught SyntaxError: invalid range in character class error.` This makes the terser minifier avoid emitting unicode characters in output (they would be escaped).
1 parent 11899a0 commit 28c846b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ module.exports = function (grunt) {
7676
minimizer: [
7777
new TerserPlugin({
7878
extractComments: /@preserve/,
79+
terserOptions: { output: { ascii_only: true } }
7980
}),
8081
],
8182
},

0 commit comments

Comments
 (0)