Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Setting up Gulp 4 for Bootstrap, SASS, and BrowserSync
Post Flair (click to view more posts with a particular flair)
Post Body

//my gulpfile:

const gulp = require('gulp');
const sass = require('gulp-sass');
const browserSync = require('browser-sync').create();

function style() { 
    return gulp.src('_frontend/scss/**/*.scss') 
    .pipe(sass().on('error',sass.logError))
    .pipe(gulp.dest('../assets/css'))
    .pipe(browserSync.stream()); }
function watch() {                      
    browserSync.init({
        server: {                             
          baseDir: "./_frontend",
           index: "/index.html"
       }
    });                     
gulp.watch('_frontend/scss/**/*.scss', style)                     gulp.watch('./*.html').on('change',browserSync.reload);                     gulp.watch('./js/**/*.js').on('change', browserSync.reload); }        

exports.style = style;
exports.watch = watch; 

<link rel="stylesheet" type="text/css" href="assets/css/styles.css">                    I 

get this mistake : Refused to apply style from 'http://localhost:3000/assets/css/styles.css' because                   its                   
MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME                   checking is enabled.

//this is my folder organization:

  |_frontend
      |-assets
      |-css
      |-js
      |-scss
         |-styles.css
      |-index.html
   | assets
       | css
           | style.css
   |-gulpfile.js
   | package.json       

where is the mistake? can someone explain me what am I doing wrong?

Author
Account Strength
80%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
251
Link Karma
97
Comment Karma
154
Profile updated: 5 days ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago