Skip to content

Commit f9c874e

Browse files
committed
Updates frontend-building related Makefile rules to also create
the dist/icons.css file. Updates the core/src/icons.js script to allow it to run before 'npm run dev', 'npm run build', or 'npm run watch' is run. Signed-off-by: Cyrille Bollu <[email protected]>
1 parent b7bce42 commit f9c874e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ npm-update:
1010
npm update
1111

1212
# Building
13-
build-js:
13+
build-js: build-css
1414
npm run dev
1515

1616
build-js-production:
1717
npm run build
1818

19-
watch-js:
20-
npm run watch
19+
watch-js: build-css
20+
npm run watch &
21+
npm run sass:watch
22+
23+
build-css:
24+
npm run sass:icons
2125

2226
# Linting
2327
lint-fix:

core/src/icons.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,4 +332,5 @@ css += generateVariablesAliases(true)
332332
css += '}'
333333

334334
// WRITE CSS
335+
fs.mkdir('dist', (err) => { return })
335336
fs.writeFileSync(path.join(__dirname, '../../dist', 'icons.css'), sass.compileString(css).css)

0 commit comments

Comments
 (0)