Answer the question
In order to leave comments, you need to log in
gulp-connect. How to properly include /bower_components?
Good day to all. I apologize in advance if something is wrong.
I comprehend the wonderful world of frontend and get acquainted with gulp. There was a problem which solution anywhere did not meet yet.
Brief preamble:
I have a project with the following structure:
SPA application and by accessing localhost:8080 you need to get the index.html page
Added the gulp-connect server to gulpfile.js :
gulp.task('connect', function() {
connect.server({
root: 'src',
livereload: true
});
});
...
<script src="../bower_components/requirejs/require.js" data-main="requireConfig"></script>
...
src="bower_components/requirejs/require.js"
root: '[./src', './'],
src="requirejs/require.js"
root: '[./src', './bower_components'],
src="bower_components/requirejs/require.js"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question