-
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
kkt start --app-src ./website
Solution:
export default (conf, env, options) => {
// ....
- conf.optimization = {
- ...conf.optimization,
- splitChunks: {
- cacheGroups: {
- refractor: {
- test: /[\\/]node_modules[\\/](refractor)[\\/]/,
- name: 'refractor-vendor',
- chunks: 'all',
- },
- },
- },
- };
- conf.output = { ...conf.output, publicPath: './' };
+ if (env === 'production') {
+ conf.optimization = {
+ ...conf.optimization,
+ splitChunks: {
+ cacheGroups: {
+ refractor: {
+ test: /[\\/]node_modules[\\/](refractor)[\\/]/,
+ name: 'refractor-vendor',
+ chunks: 'all',
+ },
+ },
+ },
+ };
+ conf.output = { ...conf.output, publicPath: './' };
+ }
return conf;
}
Metadata
Metadata
Assignees
Labels
No labels