Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #49 from 21TORR/dont-lint-scss-when-no-debug
Browse files Browse the repository at this point in the history
Don't lint SCSS when no debug is set
  • Loading branch information
apfelbox authored May 21, 2022
2 parents f6209fc + 59183dd commit 1e976cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.2.2
=====

* (bug) Don't lint SCSS when no debug is set.


2.2.1
=====

Expand Down
4 changes: 3 additions & 1 deletion src/builder/ScssBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 1e976cd

Please sign in to comment.