0.0.1 • Published 8 years ago

path-replace-map-loader v0.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

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'
    }
]