https://github.com/morulus/webpack-import-sub-plugin
Use import substitution with webpack
https://github.com/morulus/webpack-import-sub-plugin
Last synced: about 1 month ago
JSON representation
Use import substitution with webpack
- Host: GitHub
- URL: https://github.com/morulus/webpack-import-sub-plugin
- Owner: morulus
- Created: 2017-03-08T17:32:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-18T18:57:30.000Z (almost 8 years ago)
- Last Synced: 2025-05-18T04:14:35.675Z (about 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
webpack-import-sub-plugin
--
Use [Import sub](https://github.com/morulus/import-sub) with [https://webpack.js.org/](Webpack).
Usage
----
```shell
npm i webpack-import-sub-plugin --D
```
In the configuration file:
```js
const WebpackImportSubPlugin = 'webpack-import-sub-plugin';
const config = {
...,
plugins: [
new WebpackImportSubPlugin([
{
match: {
request: /some\.js/,
base: /app/,
},
use: {
request: "./to.js"
}
}
])
]
}
```
Author
----
Vladimir Kalmykov
License
----
MIT