Skip to content

Commit

Permalink
chore(example): fix kkt config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 25, 2022
1 parent 11a3a8f commit 43f649e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/electron/.kktrc.ts
Expand Up @@ -4,7 +4,6 @@ import { LoaderConfOptions } from 'kkt';

export default (conf: Configuration, env: 'development' | 'production', options: LoaderConfOptions) => {
conf = lessModules(conf, env, options);
conf.output!.publicPath = './';
const regexp = /(GenerateSW)/;
if (conf.plugins) {
conf.plugins = conf.plugins
Expand All @@ -16,5 +15,8 @@ export default (conf: Configuration, env: 'development' | 'production', options:
})
.filter(Boolean) as WebpackPluginInstance[];
}
if (env === 'production') {
conf.output = { ...conf.output, publicPath: './' };
}
return conf;
};

0 comments on commit 43f649e

Please sign in to comment.