Skip to content

Commit 6341d3c

Browse files
committed
Give modification guidance to colors partial.
1 parent c301407 commit 6341d3c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.core/gulp.tasks.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -759,11 +759,12 @@ $assets: map.set($assets, "{{key}}", "{{{dataURL}}}");
759759
done();
760760
};
761761

762-
const colorTemplate = data => {
762+
const colorTemplate = (data, src) => {
763763
const template = handlebars.compile(`
764764
//
765765
// DO NOT EDIT!
766766
// This file is generated by gulp styles:colors task.
767+
// Modify ${src} in this directory to effect this file.
767768
//
768769
@use "sass:map";
769770
@@ -817,6 +818,7 @@ $color: map.set($color, "{{key}}", \${{{ key }}});
817818
key,
818819
value,
819820
})),
821+
path.basename(filePath),
820822
);
821823

822824
fs.writeFileSync(outputPath, colorFileContents, 'utf8');

src/assets/style/_scss/_reactium-style-variables-colors-default.scss

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// DO NOT EDIT!
44
// This file is generated by gulp styles:colors task.
5+
// Modify colors-default.json in this directory to effect this file.
56
//
67
@use "sass:map";
78

0 commit comments

Comments
 (0)