gulp with gulp-ruby-sass: Error: ../style.css.map:3:1: Unknown word
Disabling sourcemaps is some kind of mystery right now. You have to do it like this
.pipe(sass({ "sourcemap=none": true }))
Source
css.map not found using gulp-ruby-sass
There is something wrong with gulp-ruby-sass.
Instead of using
sourcemap: none
use
"sourcemap=none": true
to disable sourcemaps
I tried it myself to fix an "Unknown Word" error.
Source
Gulp ruby-sass and autoprefixer do not get along
Instead of:
browsers: ['last 2 versions'],
Try this:
browsers: ['last 2 version'],
If that doesn't work, I've had better luck with gulp-sass and gulp-sourcemaps.
// Compile Sass & create sourcemap
.pipe(sourcemaps.init())
.pipe(sass())
.pipe(sourcemaps.write())
.pipe(gulp.dest('css'))
// Autoprefix, load existing sourcemap, create updated sourcemap
.pipe(sourcemaps.init({loadMaps: true}))
.pipe(autoprefixer('last 2 version')
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('css'))
Error: File to import not found or unreadable: ~bootstrap/scss/bootstrap
When Sass is precompiled by its own CLI, it processes @imports
by itself, and sometimes thus doesn’t understand ~
notation. So you can import "node_modules/bootstrap/scss/bootstrap";
in first place and replaced the ~
notation with node_modules/
instead.
Related Topics
How to Apply D3.Js Svg Clipping After Zooming
Bootstrap 4: Why Popover Inside Scrollable Dropdown Doesn't Show
Change Image Onclick for a Set Amount of Time
Conflict Between Jquery and Bootstrap
What's a React.Js-Friendly Way to Animate a List-Reordering
How to Change the Design of the Textarea Resize Handle in CSS
Put Cursor at End of Text Input's Value
Css/Js for Circular Cropping of an Image
Applying More in Depth Selection to the :Host CSS Pseudo Class
Css: Set Divs Horizontally in 2 Rows
Meteor: Tracker.Autorun/Observechanges & Collections Not Working as Expected
Css3 Replacement for Jquery.Fadein and Fadeout
Bootstrap - Datetimepicker Add Custom Button Like Today
Disable Select Option in iOS Safari