gruntjs / grunt-contrib-sass

Compile Sass to CSS.
http://gruntjs.com/
MIT License
848 stars 141 forks source link

Deprecation Warning when including `sourcemap` option #161

Closed jsgv closed 10 years ago

jsgv commented 10 years ago

I am including the sourcemap option:

sass: {
    dist: {
        options: {
          sourcemap: 'none',
          style: 'compressed'                    
        },
        files: [{
            expand: true,
            cwd: 'assets/src/sass',
            src: ['*.scss'],
            dest: 'assets/css/',
            ext: '.css'
        }]
    }
}

And the error output:

DEPRECATION WARNING: Passing --sourcemap without a value is deprecated.
Sourcemaps are now generated by default, so this flag has no effect.

sourcemap: false does the same.

tbremer commented 10 years ago

Try: --sourcemap=none

On Sep 23, 2014, 12:44, at 12:44, Jesus Galvan notifications@github.com wrote:

I am including the sourcemap option:

sass: {
   dist: {
       options: {
         sourcemap: 'none',
         style: 'compressed'                    
       },
       files: [{
           expand: true,
           cwd: 'assets/src/sass',
           src: ['*.scss'],
           dest: 'assets/css/',
           ext: '.css'
       }]
   }
}

And the error output:

DEPRECATION WARNING: Passing --sourcemap without a value is deprecated.
Sourcemaps are now generated by default, so this flag has no effect.

sourcemap: false does the same.


Reply to this email directly or view it on GitHub: https://github.com/gruntjs/grunt-contrib-sass/issues/161

sindresorhus commented 10 years ago

Duplicate of #142. Upgrade to latest version of this plugin.