dynamic-expressions-ignore-plugins

1.0.0 • Public • Published

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}`
})

Readme

Keywords

none

Package Sidebar

Install

npm i dynamic-expressions-ignore-plugins

Weekly Downloads

8

Version

1.0.0

License

MIT

Unpacked Size

27.2 kB

Total Files

14

Last publish

Collaborators

  • nunn