diff --git a/src/compileCss.js b/src/compileCss.js index f0a85f4..a196f23 100644 --- a/src/compileCss.js +++ b/src/compileCss.js @@ -17,7 +17,6 @@ module.exports = customConfig => { dst: './dist/css', compassSassDir: undefined, compassImportPath: './node_modules', - sourceMap: (process.env.NODE_ENV !== 'production'), }, customConfig); if (!config.src) { @@ -43,7 +42,7 @@ module.exports = customConfig => { css: config.dst, import_path: config.compassImportPath, sass: config.compassSassDir, - sourcemap: config.sourceMap, + sourcemap: (process.env.NODE_ENV !== 'production'), })) .on('error', function onCompileScssError() { // Continue watching when an error occurs. diff --git a/src/compileCss.spec.js b/src/compileCss.spec.js index ad90a50..61a8ad1 100644 --- a/src/compileCss.spec.js +++ b/src/compileCss.spec.js @@ -23,7 +23,6 @@ describe('compileCss method', () => { dst: './dist/css', compassSassDir: './src', compassImportPath: './node_modules', - sourceMap: true, }); });