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