1.0.0 • Published 4 years ago
dynamic-expressions-ignore-plugins v1.0.0
use age
// if you path import('./app/${moduleName}/index') webpack can rematch all /\.\/app\/.+\/index\.js/
// but use dev you only load user module, you can use this package
new DynamicExpressionsIgnore({
variableName: 'moduleName',
replacePath: `./app/user/index`
})
// or use env
// cross-env APPNAME=user
new DynamicExpressionsIgnore({
variableName: 'moduleName',
replacePath: `./app/${process.env.APPNAME}`
})
1.0.0
4 years ago