Skip to content

Commit

Permalink
fix(font): use needle if provided for font style inject
Browse files Browse the repository at this point in the history
  • Loading branch information
balthazar committed Feb 6, 2015
1 parent dd09f0d commit 74acdff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions font/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ var BangularGenerator = yeoman.generators.NamedBase.extend({
if (!genUtils.fileExists('client/styles/fonts.scss')) {
this.template('fonts.scss', 'client/styles/fonts.scss');

genUtils.appendOnTop({
dest: 'client/styles/app.scss',
genUtils.appendNeedleOrOnTop({
needle: '// imports',
file: 'client/styles/app.scss',
append: '@import \'fonts\';\n'
}, function (err) {
/* istanbul ignore if */
Expand Down

0 comments on commit 74acdff

Please sign in to comment.