Skip to content

Commit d1920ad

Browse files
committed
Temporarially adding more logging to the sass task.
1 parent 9ade944 commit d1920ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core-build/gulp-core-build-sass/src/SassTask.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ export class SassTask extends GulpTask<ISassTaskConfig> {
195195
const cleanCss: CleanCss = new CleanCss(cleanCssOptions);
196196
return cleanCss.minify(result.css.toString());
197197
}).then((result: CleanCss.Output) => {
198+
try {
198199
if (cssOutputPathAbsolute) {
199200
const generatedFileLines: string[] = [
200201
result.styles.toString()
@@ -285,7 +286,12 @@ export class SassTask extends GulpTask<ISassTaskConfig> {
285286
.replace(new RegExp(`(${EOL})+$`, 'm'), EOL)
286287
);
287288

289+
this.log(`Writing ${scssTsOutputPath}`);
288290
FileSystem.writeFile(scssTsOutputPath, generatedTsFile);
291+
this.log(`Wrote ${scssTsOutputPath}`);
292+
} catch (e) {
293+
this.log('ERROR ' + e);
294+
}
289295
});
290296
}
291297

0 commit comments

Comments
 (0)