/path-replace-map-loader

A path replace loader for webpack use map.

Primary LanguageJavaScript

path-replace-map-loader

Path replace loader for webpack use map. Great for gulp building.

Installation

npm install path-replace-map-loader --save-dev

Usage

Before running webpack, you must define a global variable named __PATH_REPLACE_MAP like below:

{
    "a.styl": "xxx.css",
    "b.styl": "xxxx.css"
}
loaders: [
    {
        test: /\.styl$/,
        loader: 'style-loader!css-loader!path-replace-map-loader'
    }
]