Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

webpack-import-sub-plugin

0.2.0 • Public • Published

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 vladimirmorulus@gmail.com

License

MIT

Install

npm i webpack-import-sub-plugin

DownloadsWeekly Downloads

9

Version

0.2.0

License

MIT

Unpacked Size

3.02 kB

Total Files

3

Last publish

Collaborators

  • avatar