gulp.task('copy:index.html', function () {
return gulp.src(dirs.src + '/index.html')
.pipe(plugins.replace(/{{JQUERY_VERSION}}/g, pkg.devDependencies.jquery))
.pipe(gulp.dest(dirs.dist));
});
我用了gulp命令,bulid到 dist 目录下 ,jquery_version就变成了1.12.0
如果我直接打开index.html 肯定找不到 jquery.js
那么index.html如何在浏览器运行啊?