Skip to content

Commit 2c45800

Browse files
committed
fix(app): copy glyphicons for sass
If Sass is enabled, copy over glyphicons as in generator-webapp. Thanks @jamierytlewski for kicking this off. With plain CSS this doesn't work, because the `img` path is hard-coded. Fixes #269
1 parent 9d248a2 commit 2c45800

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,12 @@ Generator.prototype.bootstrapFiles = function bootstrapFiles() {
138138

139139
if (sass) {
140140
files.push('main.scss');
141+
this.copy('images/glyphicons-halflings.png', 'app/images/glyphicons-halflings.png');
142+
this.copy('images/glyphicons-halflings-white.png', 'app/images/glyphicons-halflings-white.png');
141143
} else {
142144
if (this.bootstrap) {
143145
files.push('bootstrap.css');
144146
}
145-
146147
files.push('main.css');
147148
}
148149

app/templates/styles/scss/main.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
$iconSpritePath: "../images/glyphicons-halflings.png";
2+
$iconWhiteSpritePath: "../images/glyphicons-halflings-white.png";
3+
14
@import "bootstrap-sass/lib/bootstrap";
25

36
/* Put your CSS here */

0 commit comments

Comments
 (0)