Skip to content

Commit

Permalink
fix(app): include bootstrap images for css/scss
Browse files Browse the repository at this point in the history
Include the bootstrap images any time the bootstrap image is selected at
the prompt

Fixes #196
  • Loading branch information
eddiemonge committed Sep 17, 2013
1 parent c76c702 commit e88dba4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,19 @@ Generator.prototype.readIndex = function readIndex() {
Generator.prototype.bootstrapFiles = function bootstrapFiles() {
var sass = this.compassBootstrap;
var files = [];
var source = 'styles/' + ( sass ? 'scss/' : 'css/' );
var source = 'styles/' + ( sass ? 's' : '' ) + 'css/';

if (sass) {
files.push('main.scss');
this.copy('images/glyphicons-halflings.png', 'app/images/glyphicons-halflings.png');
this.copy('images/glyphicons-halflings-white.png', 'app/images/glyphicons-halflings-white.png');
} else {
if (this.bootstrap) {
if (this.bootstrap) {
if (!sass) {
files.push('bootstrap.css');
}
files.push('main.css');

this.copy('images/glyphicons-halflings.png', 'app/images/glyphicons-halflings.png');
this.copy('images/glyphicons-halflings-white.png', 'app/images/glyphicons-halflings-white.png');
}

files.push('main.' + (sass ? 's' : '') + 'css');

files.forEach(function (file) {
this.copy(source + file, 'app/styles/' + file);
}.bind(this));
Expand Down

0 comments on commit e88dba4

Please sign in to comment.