auto-scan-register-component-plugin
v1.0.4
Published
组件自动化扫描注册
Downloads
3
Readme
auto-scan-register-component-plugin
scanner code in project,auto register component by need
Getting Strated
To begin, you'll need to install auto-scan-register-component-plugin
auto-scan-register-component-plugin
webpack.config.js
const AutoScanRegisterComponentPlugin = require("auto-scan-register-component-plugin");
module.exports = {
plugins: [
new AutoScanRegisterComponentPlugin(
{pathList:['pages'],// 扫描文件目录
}),
],
};
resolve problem
maybe your project has many static resources which does not need appered production enviorment,you can use this plugin to auto register needing component
options
| name | type | default | description | | ---- | ---- | ---- | ---- | | pathList | array | [] | 扫描文件夹目录 |