Thursday, 15 April 2010

gruntjs - grunt sass sourcemaps sass wrong path? -


I have a raucous project, but I am not remembering the sarotap for sass Style.css.map like this Looks:

  {"version": 3, "file": "style.css", "source": ["../style.scss", "..//general. scss "," ../_align.scss "," ../_cf.scss "," ../_fixed-fluid.scss "]," sourcesContent ": []," mapping ":" ACAA; EACI, AAAQ ; Aar, AAAS ;; Agb; EC, came ;; Agb; EC, came ;; Agnb, EC, come; Aad, come, tap, AAAS, VAT, AAAS, VAT, Aak; Iakr came; Iaz come; Iav, Azam, are, come, tap, Aak ;; Aihb; EC, AAAS ;; Ak3Bb; ease, come; Ykw, Aak; Aar, came ;; Agd; ease, come; Ykw, Aak, Aal, Azam; Aan , suggests ;; Aib; EC, AAAS; Aekt come; App came ;; Agb; EC, AAAS; Aekt came; Aaz, Aagb; Aacb, Aak ;; Aiz, EC, come; Aaz, Aak, etc. Come, gashes; Aaf, Aagb; Iakr, AAAS, VAT, AAAS, VAT, Aak; Iakr, Aagb ;; Aikb; EC, AAAS; Aekt, Aagb ;; Ak3CpB, Aag; AX, AAAS; Aekt, AAAS ;; Acfb ; EACI, AAAO; EACP, AAAO; EACP, AAAY ;; AAGhB; EACI, AAAO; EACP, AAAO ;; AAIX; EACI, AAAO; EACP, AAAY; EACZ, AAAO; EACP, AAAC "": []  

}

The 'source' path is incorrect. Instead of "../ style.scss" Strong> / sass must be /style.scss

Grunt project file:

  module.exports = function (pebbles) {Required ('jit- Grunt.initConfig ({pkg: grunt.file.readJSON ('package.json'), connect: {server: {option: {port: 9000, livereload: true, keepalive: true open: True, hostname: 'local host'}}, saas: {option: {sourceMap: true, sourceMapEmbed: true}, district: {files: {'district / style.css':' property / saas / style Scss '}, outputStyle:' ws Doors '}}, autoprefixer: {single_file: {src:' dis / Stylekcss '}} Watch: {options: {eggs: false, Livereload: true} mother: {files :. [' property / ['Sass', 'autoprefixer']}, html: {files: [index.html, 'views / *. Html]],}, JS: {files: [' Assets / js / * .js']}},});};  

How does one configure this source path correctly in my granut file? Thanks! The source map has been working hard for some time because version v.18.0 (node- Sass v2) I feel like I'm slowly awaiting a downstream change from libsass> node-sass to make my way to suffocation. Node sass v3 should fix these issues.

I recommend coming back to version v0.17.0 so that many source maps work again


No comments:

Post a Comment