{"_id":"@systemlight/webpack-config","_rev":"44-daac05a5dee864cdea56b06ff9510550","time":{"created":"2023-02-25T10:02:48.653Z","1.0.0":"2021-11-26T05:26:57.961Z","modified":"2023-12-02T10:15:13.722Z","1.0.1":"2021-11-27T08:11:48.606Z","1.0.2":"2021-11-27T08:42:42.430Z","1.0.3":"2021-11-27T08:55:26.045Z","1.0.4":"2021-11-27T09:15:20.700Z","5.0.0":"2022-07-09T03:41:11.809Z","5.1.0":"2022-07-10T08:22:22.926Z","5.2.2":"2022-07-17T04:36:33.215Z","5.3.0":"2022-07-19T10:09:11.202Z","5.4.3":"2022-07-23T01:44:42.164Z","5.4.5":"2022-07-23T04:06:56.324Z","5.4.7":"2022-07-23T04:16:56.140Z","5.5.0":"2022-07-25T07:00:51.924Z","5.5.6":"2022-07-26T02:41:14.889Z","5.5.7":"2022-07-27T01:40:23.963Z","5.6.0":"2022-07-30T09:32:15.859Z","6.0.0":"2022-08-07T10:33:35.104Z","6.0.1":"2022-08-07T13:00:45.378Z","6.0.2":"2022-08-15T05:32:09.445Z","6.1.0":"2022-08-21T06:20:09.661Z","6.2.0":"2022-08-25T03:04:30.338Z","6.2.1":"2022-09-06T04:06:24.908Z","6.2.3":"2022-09-06T08:30:07.892Z","6.3.0":"2022-09-09T16:05:04.278Z","6.3.1":"2022-09-10T04:18:55.668Z","6.3.3":"2022-09-26T14:55:08.475Z","6.3.5":"2022-09-28T02:22:49.736Z","6.5.0":"2022-10-29T15:33:31.575Z","6.5.1":"2022-10-29T15:55:39.468Z","6.5.2":"2022-10-29T17:14:56.266Z","6.6.0":"2023-02-25T09:51:10.945Z","6.6.1":"2023-02-25T10:02:48.905Z","6.6.2":"2023-02-25T10:17:09.911Z","6.7.2":"2023-04-29T04:11:35.032Z","6.7.3":"2023-12-02T10:15:13.531Z"},"name":"@systemlight/webpack-config","dist-tags":{"latest":"6.7.3"},"versions":{"6.6.2":{"name":"@systemlight/webpack-config","version":"6.6.2","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["webpack","webpack5","simple config","config","configuration","smart webpack","smart webpack config","webpack config","zero webpack config","webpack5 config","generate webpack config"],"description":"Webpack smart configuration.","main":"dist/index.js","types":"dist/index.d.ts","bin":{"wcf":"dist/cli.js"},"author":{"name":"SystemLighht"},"license":"MIT","homepage":"https://github.com/SystemLight/webpack-config/tree/master/packages/webpack-config#readme","repository":{"type":"git","url":"git+https://github.com/SystemLight/webpack-config.git"},"bugs":{"url":"https://github.com/SystemLight/webpack-config/issues"},"engines":{"node":">=16.15.0"},"peerDependenciesMeta":{"style-loader":{"optional":true},"css-loader":{"optional":true},"postcss-loader":{"optional":true},"sass-loader":{"optional":true},"less-loader":{"optional":true},"stylus-loader":{"optional":true},"thread-loader":{"optional":true},"babel-loader":{"optional":true},"ts-loader":{"optional":true},"vue-loader":{"optional":true},"@svgr/webpack":{"optional":true},"file-loader":{"optional":true}},"peerDependencies":{"@svgr/webpack":"*","babel-loader":"*","css-loader":"*","file-loader":"*","less-loader":"*","postcss-loader":"*","sass-loader":"*","style-loader":"*","stylus-loader":"*","thread-loader":"*","ts-loader":"*","vue-loader":"*","webpack":"^5.0.0"},"devDependencies":{"@rollup/plugin-commonjs":"^22.0.2","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-typescript":"^8.5.0","@types/jest":"^29.2.0","@types/mockjs":"^1.0.7","@types/node":"^18.7.21","crlf":"^1.1.1","jest":"^29.2.2","rollup":"^2.79.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-preserve-shebang":"^1.0.1","ts-jest":"^29.0.3","typescript":"^4.8.3","webpack":"^5.74.0"},"dependencies":{"@soda/friendly-errors-webpack-plugin":"^1.8.1","@systemlight/webpack-config-mockserver":"^6.0.1","address":"^1.2.1","chalk":"4.1.2","commander":"^9.4.0","copy-webpack-plugin":"^11.0.0","dotenv-webpack":"^8.0.1","html-webpack-plugin":"^5.5.0","loader-utils":"^3.2.0","mini-css-extract-plugin":"^2.6.1","node-forge":"^1.3.1","terser-webpack-plugin":"^5.3.6","webpack-chain":"^6.5.1","webpack-merge":"^5.8.0","webpackbar":"^5.0.2"},"scripts":{"prepublish":"pnpm run build && crlf --set=LF dist/**/cli.js","release":"pnpm publish","test":"jest","build":"rollup -c","dev":"rollup -c -w"},"_id":"@systemlight/webpack-config@6.6.2","_integrity":"sha512-Zwc0rhSGkR5ok6f2lpeCztvJDUfMledXSHIaJPbPEPMAxdiH6tltVwpD5GlyiH+clwlqmIrwBfURvQwRm2K49w==","_resolved":"C:\\Users\\Syste\\AppData\\Local\\Temp\\0ed44e585fb4ec292cc095fb015559f1\\systemlight-webpack-config-6.6.2.tgz","_from":"file:systemlight-webpack-config-6.6.2.tgz","_nodeVersion":"16.15.0","_npmVersion":"9.1.2","dist":{"integrity":"sha512-Zwc0rhSGkR5ok6f2lpeCztvJDUfMledXSHIaJPbPEPMAxdiH6tltVwpD5GlyiH+clwlqmIrwBfURvQwRm2K49w==","shasum":"d9434ab269f251cca3392e30524551e76d2af543","tarball":"https://registry.npmjs.org/@systemlight/webpack-config/-/webpack-config-6.6.2.tgz","fileCount":12,"unpackedSize":80398,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH08fwGsLf/oZEg9JU3ohddNurKdxZJHz4xT+NY8atIqAiEAzyJjq7FhJgGBmHEDOd72zbeSuHRq+ZRzdxXuorPlMY8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+eAlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMGw//UKw8VRhKp3Sy1+m8NWYBBdnmio0G0NnPzZaX89jv4uzQudkT\r\n6fiXjFl6EUX63i0xRBSaGKoxaYi2jbl+FWguHMO/6wiyC9CE/XG8c85EIE2d\r\nacknzNZsYNxpsvWomCeWi8yoOU34J8o9BvMm5iRxNhGUeD5hgzCcCmnA8x0Y\r\neDRQv948N9Hh9lqIbIpEUk+3awdtuq4Lt8FQrDIIFiVI+es68MOF9jxML1eJ\r\ntAnnHesf8YyJrjXFc8z/LXFA+pV/2S2sY5fDNNtnzBlA9s+7Gu6GGvdzmz7k\r\nHtZNSv69PmQR/c2d5+7prxHLjnELt3cI4Bh9SBXebaKJFW8Ofb78qtdIapwI\r\nPQdhUJZScTS1VJY2pI1whcW0/h4FtjAwWwkQJz3dB6+RKkrSsLshX/CBWxnJ\r\n7EEhL29YIGy10cO4lVNfrDhIDomf/Yuh/zaUPT1I8k31BvqmPOPktyGKCSF+\r\n/2U6P08CMN7HFXUulXelHlakY+5d/Z4hC4mEMPr2oG1rgV6w0P6pseqNgf6r\r\nIJB6FrvUDQRCxRARtruacSmxjK9MHSMPlNEbVW9l9huTSX9eJ4/iY2HJAovJ\r\nhaOmgEXm5BBaMvfcVsLWTan/9sSNIDOir9jn9rJnD/3ElEf3iKoFGChNXOtN\r\neK/2ff0CBbEqX53KvyxXKuzyJdbmtyfsOFU=\r\n=tA1k\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"systemlight","email":"1466335092@qq.com"},"directories":{},"maintainers":[{"name":"systemlight","email":"1466335092@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-config_6.6.2_1677320229773_0.8968370668540449"},"_hasShrinkwrap":false},"6.7.2":{"name":"@systemlight/webpack-config","version":"6.7.2","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["webpack","webpack5","simple config","config","configuration","smart webpack","smart webpack config","webpack config","zero webpack config","webpack5 config","generate webpack config"],"description":"Webpack smart configuration.","main":"dist/index.js","types":"dist/index.d.ts","bin":{"wcf":"dist/cli.js"},"author":{"name":"SystemLighht"},"license":"MIT","homepage":"https://github.com/SystemLight/webpack-config/tree/master/packages/webpack-config#readme","repository":{"type":"git","url":"git+https://github.com/SystemLight/webpack-config.git"},"bugs":{"url":"https://github.com/SystemLight/webpack-config/issues"},"engines":{"node":">=16.15.0"},"peerDependenciesMeta":{"style-loader":{"optional":true},"css-loader":{"optional":true},"postcss-loader":{"optional":true},"sass-loader":{"optional":true},"less-loader":{"optional":true},"stylus-loader":{"optional":true},"thread-loader":{"optional":true},"babel-loader":{"optional":true},"ts-loader":{"optional":true},"vue-loader":{"optional":true},"@svgr/webpack":{"optional":true},"file-loader":{"optional":true}},"peerDependencies":{"@svgr/webpack":"*","babel-loader":"*","css-loader":"*","file-loader":"*","less-loader":"*","postcss-loader":"*","sass-loader":"*","style-loader":"*","stylus-loader":"*","thread-loader":"*","ts-loader":"*","vue-loader":"*","webpack":"^5.0.0"},"devDependencies":{"@rollup/plugin-commonjs":"^22.0.2","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-typescript":"^8.5.0","@types/jest":"^29.2.0","@types/mockjs":"^1.0.7","@types/node":"^18.7.21","crlf":"^1.1.1","jest":"^29.2.2","rollup":"^2.79.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-preserve-shebang":"^1.0.1","ts-jest":"^29.0.3","typescript":"^4.8.3","webpack":"^5.74.0"},"dependencies":{"@soda/friendly-errors-webpack-plugin":"^1.8.1","@systemlight/webpack-config-mockserver":"^6.0.1","address":"^1.2.1","chalk":"4.1.2","cli-highlight":"^2.1.11","commander":"^9.4.0","copy-webpack-plugin":"^11.0.0","dotenv-webpack":"^8.0.1","html-webpack-plugin":"^5.5.0","loader-utils":"^3.2.0","mini-css-extract-plugin":"^2.6.1","node-forge":"^1.3.1","terser-webpack-plugin":"^5.3.6","webpack-chain":"^6.5.1","webpack-merge":"^5.8.0","webpackbar":"^5.0.2"},"scripts":{"prepublish":"pnpm run build && crlf --set=LF dist/**/cli.js","release":"pnpm publish","test":"jest","build":"rollup -c","dev":"rollup -c -w"},"_id":"@systemlight/webpack-config@6.7.2","_integrity":"sha512-dc2dNsjIVH/PANsiHWjqpVlWI1+vN0FlrJtnzvCiATj4xSTwdCPo+7lSTzc1mH5/NkM8jXJM4dE8CkqzKE5P7A==","_resolved":"C:\\Users\\Syste\\AppData\\Local\\Temp\\f1706b2e0af8d8bb81f29f86c6ee81ab\\systemlight-webpack-config-6.7.2.tgz","_from":"file:systemlight-webpack-config-6.7.2.tgz","_nodeVersion":"16.15.0","_npmVersion":"9.6.5","dist":{"integrity":"sha512-dc2dNsjIVH/PANsiHWjqpVlWI1+vN0FlrJtnzvCiATj4xSTwdCPo+7lSTzc1mH5/NkM8jXJM4dE8CkqzKE5P7A==","shasum":"1ad8714d3b204550271d4997ec02c8b1515dccdf","tarball":"https://registry.npmjs.org/@systemlight/webpack-config/-/webpack-config-6.7.2.tgz","fileCount":12,"unpackedSize":82320,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwxLAcEj3w+j0eksGaGm2sFblMWzo9Zq6xLbqyA6HucgIhAPz+341Clys6lenYNjgL+OLCD4O6dak+EcGfSBtJrvvY"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTJj3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQvxAAoqOjRmde5m9emaf62xOZ775o1DExzk45xt8v20HIueyemthM\r\nbODtZplMdn7MMulgK0eKh2TSCNU+hXPTosR2LbkKrKxpX9Z5Mn72cUIT232L\r\ndnTub7fkl9ck3VKS2tQBFJzkEWcDThkCOlASOWQCRsmrnGXifZ4GWcBZFaed\r\nPDZ0ZQ2nb4o2GDYqLLU56uiyFSdUU8a+AiWgJkrlz4KbjPKaBt6Wyzmh/zWw\r\nGMRsblsXHTV+bOXSrDdY3O0rJc4JYhpN6kjAc2JSavq3MdKyUrP8muFOGUhl\r\nPVo5CwRHDPqfbTyL2gUGUSRRu2Xyj8JsojYN7tN6xtus1X1kmyr8Ej8e1Nm4\r\nu9cQlPI0bhW/iY0wiikW0KwBXw+xSdOdTK2LH/GaLDn003XCSJEWz3oWPi61\r\n5azfd7CmVyM7VW4AoqEvBJRhu6youZNBRas0SJwY02I5QkZ35iUEAnl9RtSx\r\nVbr+hfblfToj2bzHTCNro3DK25FxlvDT8K17SS0PVfKYbQUO/4d2TdLBJhQD\r\nuINwzXGHgXRfdnSZrlqiP+Ze4580pQy+F+O7h/cIoH70wouyBlq4jeVFTKzx\r\nyRBgrdB8HsWee2hx3tJUFV9hrwN8h7ScML8uzpEwCTzDnLEdm/f7nK9QpLJw\r\nTeOt7vPkzvI5bZ87wUv5b6KVPR8oLZhtTvo=\r\n=eYZA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"systemlight","email":"1466335092@qq.com"},"directories":{},"maintainers":[{"name":"systemlight","email":"1466335092@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-config_6.7.2_1682741494726_0.2428883897678633"},"_hasShrinkwrap":false},"6.7.3":{"name":"@systemlight/webpack-config","version":"6.7.3","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["webpack","webpack5","simple config","config","configuration","smart webpack","smart webpack config","webpack config","zero webpack config","webpack5 config","generate webpack config"],"description":"Webpack smart configuration.","main":"dist/index.js","types":"dist/types/index.d.ts","bin":{"wcf":"dist/cli.js"},"author":{"name":"SystemLighht"},"license":"MIT","homepage":"https://github.com/SystemLight/webpack-config/tree/master/packages/webpack-config#readme","repository":{"type":"git","url":"git+https://github.com/SystemLight/webpack-config.git"},"bugs":{"url":"https://github.com/SystemLight/webpack-config/issues"},"engines":{"node":">=16.15.0"},"peerDependenciesMeta":{"style-loader":{"optional":true},"css-loader":{"optional":true},"postcss-loader":{"optional":true},"sass-loader":{"optional":true},"less-loader":{"optional":true},"stylus-loader":{"optional":true},"thread-loader":{"optional":true},"babel-loader":{"optional":true},"ts-loader":{"optional":true},"vue-loader":{"optional":true},"@svgr/webpack":{"optional":true},"file-loader":{"optional":true}},"peerDependencies":{"@svgr/webpack":"*","babel-loader":"*","css-loader":"*","file-loader":"*","less-loader":"*","postcss-loader":"*","sass-loader":"*","style-loader":"*","stylus-loader":"*","thread-loader":"*","ts-loader":"*","vue-loader":"*","webpack":"^5.0.0"},"devDependencies":{"@rollup/plugin-commonjs":"^22.0.2","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-typescript":"^8.5.0","@types/jest":"^29.2.0","@types/mockjs":"^1.0.7","@types/node":"^18.7.21","crlf":"^1.1.1","jest":"^29.2.2","rollup":"^2.79.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-preserve-shebang":"^1.0.1","ts-jest":"^29.0.3","tsc-alias":"^1.8.6","typescript":"^4.8.3","webpack":"^5.88.1"},"dependencies":{"@soda/friendly-errors-webpack-plugin":"^1.8.1","@systemlight/webpack-config-mockserver":"^6.0.1","address":"^1.2.1","chalk":"4.1.2","cli-highlight":"^2.1.11","commander":"^9.4.0","copy-webpack-plugin":"^11.0.0","dotenv-webpack":"^8.0.1","html-webpack-plugin":"^5.5.0","loader-utils":"^3.2.0","mini-css-extract-plugin":"^2.6.1","node-forge":"^1.3.1","terser-webpack-plugin":"^5.3.6","webpack-chain":"^6.5.1","webpack-merge":"^5.8.0","webpackbar":"^5.0.2"},"scripts":{"prepublish":"pnpm run build && crlf --set=LF dist/**/cli.js","release":"pnpm publish","test":"jest","build":"rollup -c","dev":"rollup -c -w"},"_id":"@systemlight/webpack-config@6.7.3","_integrity":"sha512-bFG+0COUGCZrJevuGNDQTjEXFvTgUvJdPcCfAS2g7J4b1S0zBc3JiwTZuhRmU/fn+0nTAPlOGqwTSnjQJF78Yg==","_resolved":"C:\\Users\\Syste\\AppData\\Local\\Temp\\61912d5982a271e4191dd087f3d97900\\systemlight-webpack-config-6.7.3.tgz","_from":"file:systemlight-webpack-config-6.7.3.tgz","_nodeVersion":"16.15.0","_npmVersion":"9.6.5","dist":{"integrity":"sha512-bFG+0COUGCZrJevuGNDQTjEXFvTgUvJdPcCfAS2g7J4b1S0zBc3JiwTZuhRmU/fn+0nTAPlOGqwTSnjQJF78Yg==","shasum":"64d685e2bb403877e6602888e9f19cd60af7275c","tarball":"https://registry.npmjs.org/@systemlight/webpack-config/-/webpack-config-6.7.3.tgz","fileCount":23,"unpackedSize":155905,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPooJjy7RGlhuOWyO/mQTaW2GHKo0MANgKKeo7vcmlrwIgSD4IJ2VadZ8AjMWK1TFNzzllMU7a5VYW9Okz1L/50+4="}]},"_npmUser":{"name":"systemlight","email":"1466335092@qq.com"},"directories":{},"maintainers":[{"name":"systemlight","email":"1466335092@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-config_6.7.3_1701512113352_0.5129726946381359"},"_hasShrinkwrap":false}},"maintainers":[{"name":"systemlight","email":"1466335092@qq.com"}],"description":"Webpack smart configuration.","homepage":"https://github.com/SystemLight/webpack-config/tree/master/packages/webpack-config#readme","keywords":["webpack","webpack5","simple config","config","configuration","smart webpack","smart webpack config","webpack config","zero webpack config","webpack5 config","generate webpack config"],"repository":{"type":"git","url":"git+https://github.com/SystemLight/webpack-config.git"},"author":{"name":"SystemLighht"},"bugs":{"url":"https://github.com/SystemLight/webpack-config/issues"},"license":"MIT","readme":"# @systemlight/webpack-config\r\n\r\n[![NPM version](https://img.shields.io/npm/v/@systemlight/webpack-config.svg)](https://www.npmjs.com/package/@systemlight/webpack-config)\r\n\r\n> Webpack smart configuration.\r\n\r\n## Support\r\n\r\n- [x] webpack5\r\n- [x] babel\r\n- [x] mockjs\r\n- [x] typescript\r\n- [x] css\r\n- [x] postcss\r\n- [x] sass\r\n- [x] less\r\n- [x] stylus\r\n- [x] react\r\n- [x] vue\r\n\r\n## Usage\r\n\r\n### Install\r\n\r\n```bash\r\nnpm i @systemlight/webpack-config webpack -D\r\nor\r\nyarn add @systemlight/webpack-config webpack -D\r\nor\r\npnpm add @systemlight/webpack-config webpack -D\r\n```\r\n\r\n### Usage\r\n\r\nGenerate `webpack.config.js`\r\n\r\n```bash\r\nwcf init\r\n```\r\n\r\nPop up configuration file\r\n\r\n```bash\r\nwcf inspect\r\nwcf inspect build --mode production\r\nwcf inspect server --mode production\r\n```\r\n\r\n### Options\r\n\r\nAll configuration items are default values generated by the intelligent detection environment, and no configuration is\r\nrequired without special requirements\r\n\r\n- [API](src/interface/Webpack5RecommendConfigOptions.ts)\r\n- [examples](https://github.com/SystemLight/T-webpack5)\r\n- [Tutorials](https://juejin.cn/post/7139735372237373471)\r\n\r\n### Case\r\n\r\n- Additional split code configuration\r\n\r\n```js\r\nconst {wcf} = require('@systemlight/webpack-config')\r\n\r\nmodule.exports = wcf({\r\n  enableDevtool: false,\r\n  chainWebpack(config, context) {\r\n    context.configSplitChunks((options) => {\r\n      options.cacheGroups['foos'] = {\r\n        name: 'fooa',\r\n        test: /foo/,\r\n        enforce: true,\r\n        priority: 10\r\n      }\r\n    })\r\n  }\r\n})\r\n```\r\n\r\n- Ignored files should not have calls to import, require, define or any other importing mechanism\r\n\r\n```js\r\nconst {wcf} = require('@systemlight/webpack-config')\r\n\r\nmodule.exports = wcf({\r\n  enableDevtool: false,\r\n  emitHtml: false,\r\n  chainWebpack(config) {\r\n    config.module.noParse(/jquery|lodash/)\r\n  }\r\n})\r\n```\r\n\r\n- Access global jQuery\r\n\r\n```js\r\nconst {wcf} = require('@systemlight/webpack-config')\r\n\r\nmodule.exports = wcf({\r\n  enableDevtool: false,\r\n  chainWebpack(config, context) {\r\n    config.module.rule('jquery')\r\n      .test(/jquery/)\r\n      .use('expose-loader')\r\n      .loader('expose-loader')\r\n      .options({\r\n        exposes: ['$', 'jQuery']\r\n      })\r\n\r\n    context.configSplitChunks((options) => {\r\n      options.cacheGroups['jquery'] = {\r\n        name: 'jquery',\r\n        test: /jquery/,\r\n        enforce: true,\r\n        priority: 10\r\n      }\r\n    })\r\n  }\r\n}, false)\r\n```\r\n\r\n```js\r\nconst {wcf} = require('@systemlight/webpack-config')\r\nconst AddAssetHtmlPlugin = require('add-asset-html-webpack-plugin')\r\n\r\nmodule.exports = wcf({\r\n  enableDevtool: false,\r\n  configureWebpack: {\r\n    plugins: [\r\n      new AddAssetHtmlPlugin({\r\n        filepath: require.resolve('jquery')\r\n      })\r\n    ]\r\n  }\r\n}, false)\r\n```\r\n\r\n- Pop up TS type declaration file\r\n\r\n```js\r\nmodule.exports = wcf({\r\n  enableHash: false,\r\n  isNodeEnv: true,\r\n  libraryName: 'Fuse',\r\n  chainWebpack(config) {\r\n    config.module.rule('ts/tsx').use('ts-loader').tap((args) => {\r\n      args['transpileOnly'] = false\r\n      args['compilerOptions']['noEmit'] = false\r\n      return args\r\n    })\r\n  }\r\n})\r\n```\r\n\r\n- Custom inject label\r\n\r\n```js\r\nconst {wcf} = require('@systemlight/webpack-config')\r\nconst AddAssetHtmlPlugin = require('add-asset-html-webpack-plugin')\r\n\r\nmodule.exports = wcf({\r\n  enableDevtool: false,\r\n  configureWebpack: {\r\n    plugins: [\r\n      new AddAssetHtmlPlugin({\r\n        filepath: require.resolve('jquery')\r\n      })\r\n    ]\r\n  },\r\n  chainWebpack(config) {\r\n    config.plugin('HtmlWebpackPlugin').tap((args) => {\r\n      args[0].inject = false\r\n      args[0].scriptLoading = 'blocking'\r\n      return args\r\n    })\r\n  }\r\n}, false)\r\n```\r\n\r\n```ejs\r\n<!doctype html>\r\n<html lang=\"zh-cn\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <meta name=\"viewport\"\r\n          content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\">\r\n    <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\r\n    <title><%= htmlWebpackPlugin.options.title %></title>\r\n    <%= htmlWebpackPlugin\r\n            .tags\r\n            .bodyTags\r\n            .filter((tag) => /jquery/.test(tag.attributes.src))\r\n            .join('')\r\n    %>\r\n</head>\r\n<body>\r\n<div id=\"root\"></div>\r\n<%= htmlWebpackPlugin\r\n        .tags\r\n        .bodyTags\r\n        .filter((tag) => !(/jquery/.test(tag.attributes.src)))\r\n        .join('')\r\n%>\r\n</body>\r\n</html>\r\n```\r\n\r\n- Injects a custom string into the body\r\n\r\n```js\r\nconst {wcf} = require('@systemlight/webpack-config')\r\n\r\nmodule.exports = wcf({\r\n  port: 8000,\r\n  injectHtml:{content:'<div id=\"root\"></div>', position:'start'}\r\n})\r\n```\r\n\r\n## Notice!!!\r\n\r\n- If you are developing a library or a multi project repository (monorepo), please note that importing CSS has side\r\n  effects\r\n- Please make sure that the package Remove \"sideEffects\" in json: false,\r\n- Otherwise, the CSS code block will be lost by the webpack when the production environment is built\r\n","readmeFilename":"README.md"}