Skip to content

Commit

Permalink
Make css output easier to debug
Browse files Browse the repository at this point in the history
The generated css will now include source comments which show where in 
your sass files each css block comes from.

Also tidied up the options block:

 - The `style` option is not supported by grunt-sass (`outputStyle` is the 
correct option)
- `sourceMap` was misspelt and wasn’t generating the source maps
- The options have been arranged in alphabetical order to make it easier 
to read
  • Loading branch information
Alex Torrance committed Oct 4, 2016
1 parent b368791 commit a586005
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ module.exports = function (grunt) {
sass: {
dev: {
options: {
style: 'expanded',
sourcemap: true,
includePaths: [
'govuk_modules/govuk_template/assets/stylesheets',
'govuk_modules/govuk_frontend_toolkit/stylesheets',
'govuk_modules/govuk-elements-sass/'
],
outputStyle: 'expanded'
outputStyle: 'expanded',
sourceComments: true,
sourceMap: true
},
files: [{
expand: true,
Expand Down

0 comments on commit a586005

Please sign in to comment.