Skip to content

Commit

Permalink
[*] inject font path variable on compiling, make $ratchicons-path ove…
Browse files Browse the repository at this point in the history
…rridable by user
  • Loading branch information
minwe committed Jul 1, 2016
1 parent a1dd3cb commit 32c371e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ gulp.task('build:clean', () => {

gulp.task('style:scss', () => {
return gulp.src(paths.scss)
// inject fonts path
.pipe($.replace(/\/\/ INJECT_SASS_VAR/g, ''))
.pipe($.sass({
outputStyle: 'expanded',
importer: require('node-sass-import-once'),
Expand Down
2 changes: 1 addition & 1 deletion scss/amazeui.touch.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Amaze UI Touch

// variable override for style pack
$ratchicons-path: 'fonts/';
// INJECT_SASS_VAR$ratchicons-path: 'fonts/';

// Base Styles
@import "base";
Expand Down

0 comments on commit 32c371e

Please sign in to comment.