gulp browserify watchify sass_html/css_WEB-ITnose

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();}

登录后复制


登录后复制

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至253000106@qq.com举报,一经查实,本站将立刻删除。

发布者:PHP中文网,转转请注明出处:https://www.chuangxiangniao.com/p/3113914.html

(0)
上一篇 2025年3月29日 12:08:46
下一篇 2025年3月29日 12:08:55

AD推荐 黄金广告位招租... 更多推荐

发表回复

登录后才能评论