sindresorhus / grunt-sass

Compile Sass to CSS
MIT License
1.01k stars 209 forks source link

More detail options example #227

Closed 58bits closed 9 years ago

58bits commented 9 years ago

I realize the readme is pointing to libsass for options, but I think a more detailed example would help - for example...

    /**
     * Sass
     */
    sass: {
      dev: {
        options: {
          outputStyle: 'expanded',
          sourceMap: true
        },
        files: [{
          expand: true,
          cwd: 'assets/scss',
          src: ['*.scss'],
          dest: 'public/css/',
          ext: '.css'
        }]
      },
      dist: {
        options: {
          outputStyle: 'expanded',
          sourceMap: false
        },
        files: [{
          expand: true,
          cwd: 'assets/scss',
          src: ['*.scss'],
          dest: 'public/css/',
          ext: '.css'
        }]
      }
    },
sindresorhus commented 9 years ago

Read the grunt docs if you want something more comprehensive. The task config for files and options is the same for all grunt tasks as they just use the grunt APIs.

58bits commented 9 years ago

Agreed, although there's no harm in providing a more comprehensive example, as other grunt task runners do. How could providing more help and documentation be a bad thing?