Skip to content

Commit

Permalink
Merge pull request #18 from SmaatoUI/fix/no-css-sourcemap-in-production
Browse files Browse the repository at this point in the history
Fixed: no css sourcemap in production
  • Loading branch information
jenslonkowski committed Jan 6, 2016
2 parents 936f108 + 2754ec1 commit 7d755b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/compileCss.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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.
Expand Down
1 change: 0 additions & 1 deletion src/compileCss.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ describe('compileCss method', () => {
dst: './dist/css',
compassSassDir: './src',
compassImportPath: './node_modules',
sourceMap: true,
});
});

Expand Down

0 comments on commit 7d755b2

Please sign in to comment.