Doesn't compile when importing scss file with underscores
See original GitHub issueThis does not compile:
gulp.task('sass', function () {
return gulp.src([
'bower_components/bootstrap-sass/assets/stylesheets/_bootstrap.scss'
])
.pipe(sass())
.pipe(gulp.dest('css'));
});
I have to rename _bootstrap.scss to bootstrap.scss to be able to compile it, like this:
gulp.task('sass', function () {
return gulp.src([
'bower_components/bootstrap-sass/assets/stylesheets/bootstrap.scss'
])
.pipe(sass())
.pipe(gulp.dest('css'));
});
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
node-sass compiler not compiling scss file starting with ...
From the Docs: The underscore lets Sass know that the file is only a partial file and that it should not be generated...
Read more >Importing sass into underscores theme
You can see that it already imports some other files from the sass/ directory, as an example. However, you should not enqueue the...
Read more >Solved: Compiling SCSS files with an underscore in the fil...
Normally I place an underscore for the partials without using an underscore when importing the files into the main sass document as per....
Read more >Importing Sass Partials - LearnHowToProgram.com
The underscore lets Sass know that the file is only a partial file and that it should not be generated into a CSS...
Read more >How to create a file by file custom SCSS build including ...
The cross app split chunks inside the worker scope work very well. The same goes for browsers themselves: Dynamically importing files will ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Files starting with underscores are partials in Sass and, by the language definition, are not compiled.
Yes, you (@Keats, @OEvgeny) are right. I misunderstood how to work properly with bootstrap. I’ll close the ticket, because I understand it now.