Home >Web Front-end >HTML Tutorial >gulp browserify watchify sass_html/css_WEB-ITnose

gulp browserify watchify sass_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:12:441091browse

gulp.task(, () {  rubysass(scssPath, {    style: ,    loadPath: [      scssPath    ]  })    .pipe(gulp.dest(cssDestPath));});gulp.task(, () {  jscompile();});gulp.task(, () {  jscompile();});jscompile(is_watch) {  customOpts = {    entries: [jsSrcPath + ],    basedir: __dirname,    debug: !production,    cache: {},    packageCache: {},    fullPaths: watch  };  opts = lodash.assign({}, watchify.args, customOpts);  bundler;  (is_watch) {    bundler = watchify(browserify(opts));  } {    bundler = browserify(opts);  }  rebundle() {    bundler      .bundle()      .pipe(source())      .pipe(buffer())      .pipe(sourcemaps.init({loadMaps: }))      .on(, gutil.log)      .pipe(sourcemaps.write())      .pipe(gulp.dest(jsDestPath));  }  bundler.on(, () {    rebundle();  });  bundler.on(, (message) {    console.log(message);  });  rebundle();}
<br />


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn