fireshell icon indicating copy to clipboard operation
fireshell copied to clipboard

Sass sourcemaps

Open djmtype opened this issue 11 years ago • 3 comments

I installed Fireshell, but also updated the node modules. With that said, Sass along side grunt-contrib-sass now support sourcemaps. I have used it with Grunt successfully in other projects. However, I noticed Fireshell's setup does not coordinate properly. For example, if I declare a style in _app.scss, Web Inspector is telling me the style is found in _print.scss when it's clearly not.

Any idea what may be the cause?

djmtype avatar Sep 23 '14 16:09 djmtype

What does your grunt file look like?

jonlow avatar Sep 24 '14 10:09 jonlow

I have not touched the gruntfile that comes with Fireshell, so my gruntfile would be the default. Also, I tried without updating the modules and get the same results. If you run Fireshell out of the box are you not experiencing the same thing? Try writing to one of your SCSS partials, inspect it and see if it matches Web Inspector.

I don't think there is an issue with grunt-contrib-sass because I'm currently using it with a Roots-Sass project and my SCSS sourcemaps coordinate just fine, however, Fireshell and Roots-Sass config is not the same, I realize.

djmtype avatar Sep 24 '14 11:09 djmtype

Based on my recent discovery, it should include the map option in the autoprefixer task.

// Example from another gruntfile that outputs sass sourcemaps to Web Inspector

autoprefixer: {
  multiple_files: {
    expand: true,
    flatten: true,
    src: 'sass/*.scss, sass/**/*.scss',
    dest: 'css/'
  },
  sourcemap: {
    options: {
      map: true
    },
    src: 'css/styles.css',
    dest: 'css/styles.css'
  }
}

Next step—compare the above syntax with Fireshell's implementation.

djmtype avatar Sep 25 '14 01:09 djmtype