javascript - gulp-connect root as array -
in gulp-connect documentation, says options.root can array or string.
i have build directory serve root, have (separate) sources directory of source maps point to. able leverage options.root array syntax allow me serve both directories?
i have tried
root: ['build', 'sources']
but results in build
beingness accessible through server. missing here?
actually work, yet root page displays in index page first root.
what did create directory simple index.html file had in it:
<script src="b.js"></script>
then in directory b set b.js single line:
alert("you found me!!!")
i started next gulpfile:
var gulp = require('gulp'), connect = require('gulp-connect'); gulp.task('default', function () { connect.server({ root: ['a', 'b'], port: 8080, livereload: true }); });
and loaded localhost:8080/index.html , ... alert popped up
javascript node.js gulp
No comments:
Post a Comment