webpack

Solid

Webpack configuration, module federation, loaders, plugins, and optimization.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
48
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Webpack Skill Expert assistance for Webpack configuration and optimization. ## Capabilities - Configure webpack for production - Set up Module Federation - Create custom loaders/plugins - Optimize bundle size - Configure code splitting ## Configuration ```javascript const { ModuleFederationPlugin } = require('webpack').container; module.exports = { mode: 'production', entry: './src/index.js', output: { filename: '[name].[contenthash].js', chunkFilename: '[name].[contenthash].chunk.js', }, optimization: { splitChunks: { chunks: 'all', cacheGroups: { vendor: { test: /[\\/]node_modules[\\/]/, name: 'vendors', }, }, }, }, plugins: [ new ModuleFederationPlugin({ name: 'app', remotes: { shared: 'shared@http://localhost:3001/remoteEntry.js' }, }), ], }; ``` ## Target Processes - build-optimization - micro-frontend-architecture - legacy-migration

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills