Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup service stuck #330

Closed
jaywcjlove opened this issue Jan 4, 2022 · 0 comments
Closed

Startup service stuck #330

jaywcjlove opened this issue Jan 4, 2022 · 0 comments

Comments

@jaywcjlove
Copy link
Member

jaywcjlove commented Jan 4, 2022

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;
}
jaywcjlove added a commit to uiwjs/react-codemirror that referenced this issue Jan 4, 2022
Startup service stuck
kktjs/kkt#330

Upgrade react-scripts to v5, Support Webpack 5.x
kktjs/kkt#198
jaywcjlove added a commit to uiwjs/react-markdown-preview that referenced this issue Jan 8, 2022
jaywcjlove added a commit to uiwjs/react-heat-map that referenced this issue Jan 8, 2022
jaywcjlove added a commit to uiwjs/react-amap that referenced this issue Jan 8, 2022
shinyjohn0401 pushed a commit to shinyjohn0401/react-codemirror that referenced this issue Jan 22, 2024
Startup service stuck
kktjs/kkt#330

Upgrade react-scripts to v5, Support Webpack 5.x
kktjs/kkt#198
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant