From 975f86615913bddcfb677d57cac715253b76b398 Mon Sep 17 00:00:00 2001 From: Sagyo Date: Fri, 4 Feb 2022 01:55:09 -0300 Subject: [PATCH] Write sourcemap on same file & update rules --- .stylelintrc.json | 3 ++- gulpfile.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index b660bda..da9ddd7 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -3,9 +3,10 @@ "stylelint-config-lost"], "rules": { "at-rule-no-unknown": null, - "at-rule-empty-line-before": ["always", {"except": ["after-same-name"], "ignore": ["after-comment"]}], + "at-rule-empty-line-before": null, "custom-property-no-missing-var-function": null, "declaration-empty-line-before": null, + "function-name-case": ["lower", {"ignoreFunctions": ["/\\./"]}], "indentation": "tab", "max-empty-lines": null, "no-invalid-position-at-import-rule": null, diff --git a/gulpfile.js b/gulpfile.js index f70895e..940bae3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -51,7 +51,7 @@ const buildSass = function() { .pipe(sourcemaps.init()) .pipe(sass().on('error', sass.logError)) .pipe(postcss(postCssProcessors)) - .pipe(sourcemaps.write('')) + .pipe(sourcemaps.write()) .pipe(rename({dirname:''})) .pipe(gulp.dest(paths.cssDest)); };