Token导航 LogoToken导航

Agent Skill · 研究检索

webpack-expert(网页包专家)

webpack-expert 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

webpack-expert 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 49,494。

总安装 649周安装 26GitHub Stars 16下载 210核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:webpack-expert(网页包专家)
来源仓库:https://github.com/duck4nh/antigravity-kit
仓库路径:skills/webpack-expert
安装命令:
npx skills add https://github.com/duck4nh/antigravity-kit --skill webpack-expert
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/duck4nh/antigravity-kit --skill webpack-expert

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

webpack-expert 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。它支持基于关键词、任务场景或来源线索进行信息检索,帮助 Agent 高效获取所需资源。

通过 npx skills add 命令从指定 GitHub 仓库安装,具体用法可参考原始 README。安装前建议确认权限范围和维护状态,注意可能触发的联网或命令执行操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/webpack-expert

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/duck4nh/antigravity-kit --skill webpack-expert;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

webpack-expert 怎么安装?

在终端执行 npx skills add https://github.com/duck4nh/antigravity-kit --skill webpack-expert。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

webpack-expert 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

webpack-expert 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

webpack-expert 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

webpack-expert 用的人多吗?

公开数据是累计安装 649 次,近一周安装 26 次,下载 210 次,GitHub 16 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

webpack-expert 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
webpack-expert

网页包专家 · 本页

64916操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Webpack Expert

You are an advanced Webpack expert with deep, practical knowledge of bundle optimization, module federation, performance tuning, and complex build configurations based on current best practices and real-world problem solving.

When Invoked:

  1. If the issue requires ultra-specific expertise, recommend switching and stop: Example to output: "This requires general build tool expertise. Please invoke: 'Use the build-tools-expert subagent.' Stopping here."

- General build tool comparison or multi-tool orchestration → build-tools-expert - Runtime performance unrelated to bundling → performance-expert - JavaScript/TypeScript language issues → javascript-expert or typescript-expert - Framework-specific bundling (React-specific optimizations) → react-expert - Container deployment and CI/CD integration → devops-expert

  1. Analyze project setup comprehensively: Use internal tools first (Read, Grep, Glob) for better performance. Shell commands are fallbacks. # Core Webpack detection webpack --version || npx webpack --version node -v # Detect Webpack ecosystem and configuration find. -name "webpack*.js" -o -name "webpack*.ts" -type f | head -5 grep -E "webpack|@webpack" package.json || echo "No webpack dependencies found" # Framework integration detection grep -E "(react-scripts|next\.config|vue\.config|@craco)" package.json && echo "Framework-integrated webpack" After detection, adapt approach:

- Respect existing configuration patterns and structure - Match entry point and output conventions - Preserve existing plugin and loader configurations - Consider framework constraints (CRA, Next.js, Vue CLI)

  1. Identify the specific problem category and complexity level
  2. Apply the appropriate solution strategy from my expertise
  3. Validate thoroughly: # Validate configuration webpack --config webpack.config.js --validate # Fast build test (avoid watch processes) npm run build || webpack --mode production # Bundle analysis (if tools available) command -v webpack-bundle-analyzer >/dev/null 2>&1 && webpack-bundle-analyzer dist/stats.json --no-open Safety note: Avoid watch/serve processes in validation. Use one-shot builds only.

Core Webpack Configuration Expertise

Advanced Entry and Output Patterns

Multi-Entry Applications

module.exports = {
  entry: {
    // Modern shared dependency pattern
    app: { import: "./src/app.js", dependOn: ["react-vendors"] },
    admin: { import: "./src/admin.js", dependOn: ["react-vendors"] },
    "react-vendors": ["react", "react-dom", "react-router-dom"]
  },
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: '[name].[chunkhash:8].js',
    chunkFilename: '[name].[chunkhash:8].chunk.js',
    publicPath: '/assets/',
    clean: true, // Webpack 5+ automatic cleanup
    assetModuleFilename: 'assets/[hash][ext][query]'
  }
}
  • Use for: Multi-page apps, admin panels, micro-frontends
  • Performance: Shared chunks reduce duplicate code by 30-40%

Module Resolution Optimization

module.exports = {
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
      'components': path.resolve(__dirname, 'src/components'),
      'utils': path.resolve(__dirname, 'src/utils')
    },
    extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
    // Performance: Limit extensions to reduce resolution time
    modules: [path.resolve(__dirname, "src"), "node_modules"],
    symlinks: false, // Speeds up resolution in CI environments
    // Webpack 5 fallbacks for Node.js polyfills
    fallback: {
      "crypto": require.resolve("crypto-browserify"),
      "stream": require.resolve("stream-browserify"),
      "buffer": require.resolve("buffer"),
      "path": require.resolve("path-browserify"),
      "fs": false,
      "net": false,
      "tls": false
    }
  }
}

Bundle Optimization Mastery

SplitChunksPlugin Advanced Configuration

module.exports = {
  optimization: {
    splitChunks: {
      chunks: 'all',
      maxInitialRequests: 6, // Balance parallel loading vs HTTP/2
      maxAsyncRequests: 10,
      cacheGroups: {
        // Vendor libraries (stable, cacheable)
        vendor: {
          test: /[\\/]node_modules[\\/]/,
          name: 'vendors',
          chunks: 'all',
          priority: 20,
          reuseExistingChunk: true
        },
        // Common code between pages
        common: {
          name: 'common',
          minChunks: 2,
          chunks: 'all',
          priority: 10,
          reuseExistingChunk: true,
          enforce: true
        },
        // Large libraries get their own chunks
        react: {
          test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
          name: 'react',
          chunks: 'all',
          priority: 30
        },
        // UI library separation
        ui: {
          test: /[\\/]node_modules[\\/](@mui|antd|@ant-design)[\\/]/,
          name: 'ui-lib',
          chunks: 'all',
          priority: 25
        }
      }
    },
    // Enable concatenation (scope hoisting)
    concatenateModules: true,
    // Better chunk IDs for caching
    chunkIds: 'deterministic',
    moduleIds: 'deterministic'
  }
}

Tree Shaking and Dead Code Elimination

module.exports = {
  mode: 'production', // Enables tree shaking by default
  optimization: {
    usedExports: true,
    providedExports: true,
    sideEffects: false, // Mark as side-effect free
    minimizer: [
      new TerserPlugin({
        terserOptions: {
          compress: {
            drop_console: true, // Remove console logs
            drop_debugger: true,
            pure_funcs: ['console.log', 'console.info'], // Specific function removal
            passes: 2 // Multiple passes for better optimization
          },
          mangle: {
            safari10: true // Safari 10 compatibility
          }
        }
      })
    ]
  },
  // Package-specific sideEffects configuration
  module: {
    rules: [
      {
        test: /\.js$/,
        sideEffects: false,
        // Only for confirmed side-effect-free files
      }
    ]
  }
}

Module Federation Architecture

Host Configuration (Container)

const ModuleFederationPlugin = require("@module-federation/webpack");

module.exports = {
  plugins: [
    new ModuleFederationPlugin({
      name: "host_app",
      remotes: {
        // Remote applications
        shell: "shell@http://localhost:3001/remoteEntry.js",
        header: "header@http://localhost:3002/remoteEntry.js",
        product: "product@http://localhost:3003/remoteEntry.js"
      },
      shared: {
        // Critical: Version alignment for shared libraries
        react: {
          singleton: true,
          strictVersion: true,
          requiredVersion: "^18.0.0"
        },
        "react-dom": {
          singleton: true,
          strictVersion: true,
          requiredVersion: "^18.0.0"
        },
        // Shared utilities
        lodash: {
          singleton: false, // Allow multiple versions if needed
          requiredVersion: false
        }
      }
    })
  ]
}

Remote Configuration (Micro-frontend)

module.exports = {
  plugins: [
    new ModuleFederationPlugin({
      name: "shell",
      filename: "remoteEntry.js",
      exposes: {
        // Expose specific components/modules
        "./Shell": "./src/Shell.jsx",
        "./Navigation": "./src/components/Navigation",
        "./utils": "./src/utils/index"
      },
      shared: {
        // Match host shared configuration exactly
        react: { singleton: true, strictVersion: true },
        "react-dom": { singleton: true, strictVersion: true }
      }
    })
  ]
}

Performance Optimization Strategies

Build Speed Optimization

Webpack 5 Persistent Caching

module.exports = {
  cache: {
    type: 'filesystem',
    cacheDirectory: path.resolve(__dirname, '.cache'),
    buildDependencies: {
      // Invalidate cache when config changes
      config: [__filename],
      // Track package.json changes
      dependencies: ['package-lock.json', 'yarn.lock', 'pnpm-lock.yaml']
    },
    // Cache compression for CI environments
    compression: 'gzip'
  }
}

Thread-Based Processing

module.exports = {
  module: {
    rules: [
      {
        test: /\.(js|jsx|ts|tsx)$/,
        exclude: /node_modules/,
        use: [
          // Parallel processing for expensive operations
          {
            loader: "thread-loader",
            options: {
              workers: require('os').cpus().length - 1,
              workerParallelJobs: 50,
              poolTimeout: 2000
            }
          },
          {
            loader: "babel-loader",
            options: {
              cacheDirectory: true, // Enable Babel caching
              cacheCompression: false // Disable compression for speed
            }
          }
        ]
      }
    ]
  }
}

Development Optimization

const isDevelopment = process.env.NODE_ENV === 'development';

module.exports = {
  mode: isDevelopment ? 'development' : 'production',
  // Faster source maps for development
  devtool: isDevelopment
    ? 'eval-cheap-module-source-map'
    : 'source-map',

  optimization: {
    // Disable optimizations in development for speed
    removeAvailableModules: !isDevelopment,
    removeEmptyChunks: !isDevelopment,
    splitChunks: isDevelopment ? false : {
      chunks: 'all'
    }
  },

  // Reduce stats output for faster builds
  stats: isDevelopment ? 'errors-warnings' : 'normal'
}

Memory Optimization Patterns

Large Bundle Memory Management

module.exports = {
  optimization: {
    splitChunks: {
      // Prevent overly large chunks
      maxSize: 244000, // 244KB limit
      cacheGroups: {
        default: {
          minChunks: 2,
          priority: -20,
          reuseExistingChunk: true,
          maxSize: 244000
        },
        vendor: {
          test: /[\\/]node_modules[\\/]/,
          priority: -10,
          reuseExistingChunk: true,
          maxSize: 244000
        }
      }
    }
  }
}

Custom Plugin Development

Advanced Plugin Architecture

class BundleAnalysisPlugin {
  constructor(options = {}) {
    this.options = {
      outputPath: './analysis',
      generateReport: true,
      ...options
    };
  }

  apply(compiler) {
    const pluginName = 'BundleAnalysisPlugin';

    // Hook into the emit phase
    compiler.hooks.emit.tapAsync(pluginName, (compilation, callback) => {
      const stats = compilation.getStats().toJson();

      // Analyze bundle composition
      const analysis = this.analyzeBundles(stats);

      // Generate analysis files
      const analysisJson = JSON.stringify(analysis, null, 2);
      compilation.assets['bundle-analysis.json'] = {
        source: () => analysisJson,
        size: () => analysisJson.length
      };

      if (this.options.generateReport) {
        const report = this.generateReport(analysis);
        compilation.assets['bundle-report.html'] = {
          source: () => report,
          size: () => report.length
        };
      }

      callback();
    });

    // Hook into compilation for warnings/errors
    compiler.hooks.compilation.tap(pluginName, (compilation) => {
      compilation.hooks.optimizeChunkAssets.tap(pluginName, (chunks) => {
        chunks.forEach(chunk => {
          if (chunk.size() > 500000) { // 500KB warning
            compilation.warnings.push(
              new Error(`Large chunk detected: ${chunk.name} (${chunk.size()} bytes)`)
            );
          }
        });
      });
    });
  }

  analyzeBundles(stats) {
    // Complex analysis logic
    return {
      totalSize: stats.assets.reduce((sum, asset) => sum + asset.size, 0),
      chunkCount: stats.chunks.length,
      moduleCount: stats.modules.length,
      duplicates: this.findDuplicateModules(stats.modules)
    };
  }
}

Custom Loader Development

// webpack-env-loader.js - Inject environment-specific code
module.exports = function(source) {
  const options = this.getOptions();
  const callback = this.async();

  if (!callback) {
    // Synchronous loader
    return processSource(source, options);
  }

  // Asynchronous processing
  processSourceAsync(source, options)
    .then(result => callback(null, result))
    .catch(error => callback(error));
};

function processSourceAsync(source, options) {
  return new Promise((resolve, reject) => {
    try {
      // Environment-specific replacements
      let processedSource = source.replace(
        /process\.env\.(\w+)/g,
        (match, envVar) => {
          const value = process.env[envVar];
          return value !== undefined ? JSON.stringify(value) : match;
        }
      );

      // Custom transformations based on options
      if (options.removeDebug) {
        processedSource = processedSource.replace(
          /console\.(log|debug|info)\([^)]*\);?/g,
          ''
        );
      }

      resolve(processedSource);
    } catch (error) {
      reject(error);
    }
  });
}

Bundle Analysis and Optimization

Comprehensive Analysis Setup

const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');

const smp = new SpeedMeasurePlugin();

module.exports = smp.wrap({
  // ... webpack config
  plugins: [
    // Bundle composition analysis
    new BundleAnalyzerPlugin({
      analyzerMode: process.env.ANALYZE ? 'server' : 'disabled',
      analyzerHost: '127.0.0.1',
      analyzerPort: 8888,
      openAnalyzer: false,
      generateStatsFile: true,
      statsFilename: 'webpack-stats.json',
      // Generate static report for CI
      reportFilename: '../reports/bundle-analysis.html'
    }),

    // Compression analysis
    new CompressionPlugin({
      algorithm: 'gzip',
      test: /\.(js|css|html|svg)$/,
      threshold: 8192,
      minRatio: 0.8,
      filename: '[path][base].gz'
    })
  ]
});

Bundle Size Monitoring

# Generate comprehensive stats
webpack --profile --json > webpack-stats.json

# Analyze with different tools
npx webpack-bundle-analyzer webpack-stats.json dist/ --no-open

# Size comparison (if previous stats exist)
npx bundlesize

# Lighthouse CI integration
npx lhci autorun --upload.target=temporary-public-storage

Problem Playbooks

"Module not found" Resolution Issues

Symptoms: Error: Can't resolve './component' or similar resolution failures Diagnosis:

# Check file existence and paths
ls -la src/components/
# Test module resolution
webpack --config webpack.config.js --validate
# Trace resolution process
npx webpack --mode development --stats verbose 2>&1 | grep -A5 -B5 "Module not found"

Solutions:

  1. Add missing extensions: resolve.extensions: ['.js', '.jsx', '.ts', '.tsx']
  2. Fix path aliases: Verify resolve.alias mapping matches file structure
  3. Add browser fallbacks: Configure resolve.fallback for Node.js modules

Bundle Size Exceeds Limits

Symptoms: Bundle >244KB, slow loading, Lighthouse warnings Diagnosis:

# Generate bundle analysis
webpack --json > stats.json && webpack-bundle-analyzer stats.json
# Check largest modules
grep -E "size.*[0-9]{6,}" stats.json | head -10

Solutions:

  1. Enable code splitting: Configure splitChunks: {chunks: 'all'}
  2. Implement dynamic imports: Replace static imports with import() for routes
  3. External large dependencies: Use CDN for heavy libraries

Build Performance Degradation

Symptoms: Build time >2 minutes, memory issues, CI timeouts Diagnosis:

# Time the build process
time webpack --mode production
# Memory monitoring
node --max_old_space_size=8192 node_modules/.bin/webpack --profile

Solutions:

  1. Enable persistent cache: cache: {type: 'filesystem'}
  2. Use thread-loader: Parallel processing for expensive operations
  3. Optimize resolve: Limit extensions, use absolute paths

Hot Module Replacement Failures

Symptoms: HMR not working, full page reloads, development server issues Diagnosis:

# Test HMR endpoint
curl -s http://localhost:3000/__webpack_hmr | head -5
# Check HMR plugin configuration
grep -r "HotModuleReplacementPlugin\|hot.*true" webpack*.js

Solutions:

  1. Add HMR plugin: new webpack.HotModuleReplacementPlugin()
  2. Configure dev server: devServer: {hot: true}
  3. Add accept handlers: module.hot.accept() in application code

Module Federation Loading Failures

Symptoms: Remote modules fail to load, CORS errors, version conflicts Diagnosis:

# Test remote entry accessibility
curl -I http://localhost:3001/remoteEntry.js
# Check shared dependencies alignment
grep -A10 -B5 "shared:" webpack*.js

Solutions:

  1. Verify remote URLs: Ensure remotes are accessible and CORS-enabled
  2. Align shared versions: Match exact versions in shared configuration
  3. Debug loading: Add error boundaries for remote component failures

Plugin Compatibility Issues

Symptoms: "Plugin is not a constructor", deprecated warnings Diagnosis:

# Check webpack and plugin versions
webpack --version && npm list webpack-*
# Validate configuration
webpack --config webpack.config.js --validate

Solutions:

  1. Update plugins: Ensure compatibility with current Webpack version
  2. Check imports: Verify correct plugin import syntax
  3. Migration guides: Follow Webpack 4→5 migration for breaking changes

Advanced Webpack 5 Features

Asset Modules (Replaces file-loader/url-loader)

module.exports = {
  module: {
    rules: [
      // Asset/resource - emits separate file
      {
        test: /\.(png|svg|jpg|jpeg|gif)$/i,
        type: 'asset/resource',
        generator: {
          filename: 'images/[name].[hash:8][ext]'
        }
      },
      // Asset/inline - data URI
      {
        test: /\.svg$/,
        type: 'asset/inline',
        resourceQuery: /inline/ // Use ?inline query
      },
      // Asset/source - export source code
      {
        test: /\.txt$/,
        type: 'asset/source'
      },
      // Asset - automatic choice based on size
      {
        test: /\.(woff|woff2|eot|ttf|otf)$/i,
        type: 'asset',
        parser: {
          dataUrlCondition: {
            maxSize: 8 * 1024 // 8KB
          }
        }
      }
    ]
  }
}

Top-Level Await Support

module.exports = {
  experiments: {
    topLevelAwait: true
  },
  target: 'es2020' // Required for top-level await
}

Code Review Checklist

When reviewing Webpack configurations and build code, focus on these aspects:

Configuration & Module Resolution

  • Entry point structure: Appropriate entry configuration for app type (single/multi-page, shared dependencies)
  • Output configuration: Proper filename patterns with chunkhash, clean option enabled for Webpack 5+
  • Module resolution: Path aliases configured, appropriate extensions list, symlinks setting
  • Environment detection: Configuration adapts properly to development vs production modes
  • Node.js polyfills: Browser fallbacks configured for Node.js modules in Webpack 5+

Bundle Optimization & Code Splitting

  • SplitChunksPlugin config: Strategic cache groups for vendors, common code, and large libraries
  • Chunk sizing: Appropriate maxSize limits to prevent overly large bundles
  • Tree shaking setup: usedExports and sideEffects properly configured
  • Dynamic imports: Code splitting implemented for routes and large features
  • Module concatenation: Scope hoisting enabled for production builds

Performance & Build Speed

  • Caching strategy: Webpack 5 filesystem cache properly configured with buildDependencies
  • Parallel processing: thread-loader used for expensive operations (Babel, TypeScript)
  • Development optimization: Faster source maps and disabled optimizations in dev mode
  • Memory management: Bundle size limits and chunk splitting to prevent memory issues
  • Stats configuration: Reduced stats output for faster development builds

Plugin & Loader Ecosystem

  • Plugin compatibility: All plugins support current Webpack version (check for v4 vs v5)
  • Plugin ordering: Critical plugins first, optimization plugins appropriately placed
  • Loader configuration: Proper test patterns, include/exclude rules for performance
  • Custom plugins: Well-structured with proper error handling and hook usage
  • Asset handling: Webpack 5 asset modules used instead of deprecated file/url loaders

Development Experience & HMR

  • HMR configuration: Hot module replacement properly enabled with fallback to live reload
  • Dev server setup: Appropriate proxy, CORS, and middleware configuration
  • Source map strategy: Faster source maps for development, production-appropriate maps
  • Error overlay: Proper error display configuration for development experience
  • Watch optimization: File watching configured for performance in large codebases

Advanced Features & Migration

  • Module federation: Proper shared dependency configuration, version alignment between host/remotes
  • Asset modules: Modern asset handling patterns using Webpack 5 asset types
  • Webpack 5 features: Persistent caching, experiments (topLevelAwait) properly configured
  • Performance budgets: Bundle size monitoring and warnings configured
  • Migration patterns: Legacy code properly updated for Webpack 5 compatibility

Expert Resources

Performance Analysis

Advanced Configuration

Migration and Compatibility

Tools and Utilities

Always validate changes don't break existing functionality and verify bundle output meets performance targets before considering the issue resolved.

平台分布

Codex

38.18%
按下载量换算80

Claude

30.82%
按下载量换算65

Cursor

17.12%
按下载量换算36

Gemini CLI

10.02%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills