S
S
Sergey2016-11-11 21:57:57
gulp.js
Sergey, 2016-11-11 21:57:57

css normolize.css is not connected via import saas, how to fix it?

There is a normalize.css file in node_modules. I want to include it, but it is not inserted into .scss by import. How to treat?
index.scss
@import "normalize-css/normalize";
gulp

.pipe(sass({
      includePaths: ['node_modules', path.join('src') ]
    }))

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2016-11-11
@Sergamers

Everything works, for some reason I created 2 css and styles folders and got confused in them

S
SagePtr, 2016-11-11
@SagePtr

Forgot to specify the file extension?

S
sergey, 2016-11-11
@zorro76

For example, I connect like this:

gulp.task('styles:vendor', function() {
  gulp.src(mainBowerFiles({
          "overrides": {
              "normalize.css": {
                  "main": "./normalize.css"
              },
              "magnific-popup": {
                  "main": "./dist/magnific-popup.css"
              }
          }
  }))
  .pipe(cssFilter)
  .pipe(concat('vendor.css'))
  .pipe(gulpIf(env !== 'dev', minifyCSS()))
  .pipe(gulp.dest(outputDir + 'css'))
});

using bower, well, then using mainBowerFiles I collect everything into one vendor.css file,
everything works and everything works fine
at the finish I have 2 css files: main.css and vendor.css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question