Skip to content

Commit

Permalink
chore: fix failed to parse source map issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 23, 2023
1 parent ce6761a commit 7e3e710
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions www/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export default (conf: Configuration, env: 'production' | 'development', options:
VERSION: JSON.stringify(pkg.version),
}),
);
conf.ignoreWarnings = [
{
module: /node_modules[\\/]parse5[\\/]/,
},
];
conf.module!.exprContextCritical = false;
if (env === 'production') {
conf.optimization = {
Expand Down
2 changes: 1 addition & 1 deletion www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "kenny wang <wowohoo@qq.com>",
"scripts": {
"build": "kkt build",
"start": "GENERATE_SOURCEMAP=false kkt start",
"start": "kkt start",
"map": "source-map-explorer build/static/js/*.js --html build/website-result.html"
},
"license": "MIT",
Expand Down

2 comments on commit 7e3e710

@vercel
Copy link

@vercel vercel bot commented on 7e3e710 Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaywcjlove
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.