Skip to content

Commit

Permalink
type(basic-plugins):修复类型问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SunLxy committed Apr 7, 2022
1 parent 6466393 commit 8ffd0ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions example/basic-plugins/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import WebpackPluginSSRProps, { clearHtmlTemp, createNewWebpackManifestPlugin }
import { WebpackConfiguration } from "kkt"
export default (conf: WebpackConfiguration, env: "development" | "production") => {
const paths = require("react-scripts/config/paths")
conf.plugins.push(new WebpackPluginSSRProps());
conf.plugins.push(createNewWebpackManifestPlugin(paths, "client", env === "development"));
conf.plugins?.push(new WebpackPluginSSRProps());
conf.plugins?.push(createNewWebpackManifestPlugin(paths, "client", env === "development"));
conf = clearHtmlTemp(conf)
conf.module.exprContextCritical = false;
if (conf.module) {
conf.module.exprContextCritical = false;
}
return conf;
};

0 comments on commit 8ffd0ad

Please sign in to comment.