Path replace loader for webpack use map. Great for gulp building.
npm install path-replace-map-loader --save-dev
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'
}
]