From ed272e2f42d3b3be00315d03acb012b885e4f8e3 Mon Sep 17 00:00:00 2001 From: Alex Torrance Date: Tue, 4 Oct 2016 14:57:32 +0100 Subject: [PATCH] Make css output easier to debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Gruntfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index a508944a8d..c61ba147b5 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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,