If I have a html file and link to a css file that is in the same folder or a subfolder, the css is included when running gulp webserver.
But if I have the css file outside the html-folder, it doesn't get included.
So for example, if the css is in the same folder, I can write:
<link rel="stylesheet" href="style.css">
and it will work. If I place it outside in the parent folder, and link to it:
<link rel="stylesheet" href="../style.css">
it doesn't work. Is this a problem with gulp webserver or have I overlooked something? I would like to have the css at a diefferent place, like this:
<link rel="stylesheet" href="../../builds/development/postcss/css/style.css">
In the browser, it says "failed to load resource".
Here is the webserver task:
gulp.task('webserver', function() {
gulp.src(htmlFolder)
.pipe(webserver({
livereload: true,
open: true
}));
});
rootis the farthest back it can go: github.com/schickling/gulp-ebserver#usage.