When utilizing a html file that links to a css file in the same folder or a subfolder, the css is successfully included when running gulp webserver.
However, if the css file is located outside of the html-folder, it fails to be included.
For instance, if the css resides in the same folder, you can simply write:
<link rel="stylesheet" href="style.css">
and it will function properly. But if you try to link to a css file outside of the html-folder by using:
<link rel="stylesheet" href="../style.css">
it does not work. Is this an issue with gulp webserver or have I missed something? I would like to house the css in a different location, like so:
<link rel="stylesheet" href="../../builds/development/postcss/css/style.css">
Unfortunately, in the browser, it displays "failed to load resource".
Below is the webserver task as defined in the code:
gulp.task('webserver', function() {
gulp.src(htmlFolder)
.pipe(webserver({
livereload: true,
open: true
}));
});