diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b61019..1e32b77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +2.2.2 +===== + +* (bug) Don't lint SCSS when no debug is set. + + 2.2.1 ===== diff --git a/src/builder/ScssBuilder.ts b/src/builder/ScssBuilder.ts index 7b31067..888a730 100644 --- a/src/builder/ScssBuilder.ts +++ b/src/builder/ScssBuilder.ts @@ -87,7 +87,9 @@ export class ScssBuilder const allIncludedFiles = this.fetchAllIncludedFiles(); // then linting all - const hasLintErrors = await this.lintFiles(allIncludedFiles); + const hasLintErrors = this.runConfig.debug + ? await this.lintFiles(allIncludedFiles) + : false; if (this.runConfig.watch) {