js-url-complier
v1.0.1
Published
complier js
Downloads
1
Readme
js-url-complier
Install
$ npm i --save-dev js-url-complier
introduction
- replace the value of key
Usage
const gulp = require("gulp"),
util = require("gulp-util"),
jsUrlComplier = require("js-url-complier");
gulp.task("js:urlcomplier", function() {
return gulp
.src("src/pages/*.js")
.pipe(jsUrlComplier("BaseUrl", "https://app.douban.net"))
.pipe(gulp.dest("build/production"))
.on("error", util.log);
});