chore(web): 注释掉 Next.js 配置中的部分代码

- 注释掉了 runtimeChunk、cache 和 watchOptions 相关的配置
- 这些配置可能会影响开发环境的性能和缓存行为
- 注释掉这些配置以便进行测试或调试
main
Tuzki 5 months ago
parent f439a9fe7b
commit 721da7afd2
  1. 9
      web/next.config.js

@ -33,10 +33,11 @@ const nextConfig = {
webpack: (config, { isServer }) => {
config.resolve.fallback = { fs: false };
if (!isServer) {
config.optimization.runtimeChunk = 'single';
config.watchOptions = {
ignored: ['**/node_modules', '**/.git'],
};
// config.optimization.runtimeChunk = 'single';
// config.cache = false;
// config.watchOptions = {
// ignored: ['**/node_modules', '**/.git'],
// };
config.plugins.push(
new CopyPlugin({
patterns: [

Loading…
Cancel
Save