webpack-import-sub-plugin
v0.2.0
Published
Webpack plugin for redirecting import by specified rules
Downloads
42
Maintainers
Readme
webpack-import-sub-plugin
Use Import sub with https://webpack.js.org/.
Usage
npm i webpack-import-sub-plugin --D
In the configuration file:
const WebpackImportSubPlugin = 'webpack-import-sub-plugin';
const config = {
...,
plugins: [
new WebpackImportSubPlugin([
{
match: {
request: /some\.js/,
base: /app/,
},
use: {
request: "./to.js"
}
}
])
]
}
Author
Vladimir Kalmykov [email protected]
License
MIT