1.0.5 • Published 7 years ago

webpack-path-override-plugin v1.0.5

Weekly downloads
7
License
ISC
Repository
github
Last release
7 years ago

webpack-path-override-plugin

How to use it?

Suppose you want override import/require path, such as:

  1. import config from '../../config.market.json'
  2. const config = require('../../config.market.json')

to:

  1. import config from '../../config.other_market.json'
  2. const config = require('../../config.other_market.json')

You can add plugin in to webpack config:

 plugins: [
    new WebpackPathOverridePlugin(/config\.market\.json$/, 'config\.other_market\.json'),
 ],

The first param is the path(it can be a regex) that you want to be override.

The second param is the path that be used to override the first param.

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago