Skip to content

Commit 7e3e710

Browse files
committed
chore: fix failed to parse source map issue.
1 parent ce6761a commit 7e3e710

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

www/.kktrc.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ export default (conf: Configuration, env: 'production' | 'development', options:
1111
VERSION: JSON.stringify(pkg.version),
1212
}),
1313
);
14+
conf.ignoreWarnings = [
15+
{
16+
module: /node_modules[\\/]parse5[\\/]/,
17+
},
18+
];
1419
conf.module!.exprContextCritical = false;
1520
if (env === 'production') {
1621
conf.optimization = {

www/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "kenny wang <wowohoo@qq.com>",
77
"scripts": {
88
"build": "kkt build",
9-
"start": "GENERATE_SOURCEMAP=false kkt start",
9+
"start": "kkt start",
1010
"map": "source-map-explorer build/static/js/*.js --html build/website-result.html"
1111
},
1212
"license": "MIT",

0 commit comments

Comments
 (0)