From 898415b6d1d76e9ab56eb9ee46b221bcafbd5301 Mon Sep 17 00:00:00 2001 From: Jamie R Rytlewski Date: Fri, 5 Jul 2013 18:56:01 -0400 Subject: [PATCH] fix(app): 404 on Bootstrap Images Add lines of code to allow the glyphicons to not have 404 errors. Followed the standard of the generator-yeoman-webapp for consistency. --- app/index.js | 2 ++ app/templates/styles/scss/main.scss | 3 +++ 2 files changed, 5 insertions(+) diff --git a/app/index.js b/app/index.js index 6527cd6f4..916df6ef1 100644 --- a/app/index.js +++ b/app/index.js @@ -137,6 +137,8 @@ Generator.prototype.bootstrapFiles = function bootstrapFiles() { } else { if (this.bootstrap) { files.push('bootstrap.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.css'); diff --git a/app/templates/styles/scss/main.scss b/app/templates/styles/scss/main.scss index 7d182b87f..1b85ac229 100644 --- a/app/templates/styles/scss/main.scss +++ b/app/templates/styles/scss/main.scss @@ -1,3 +1,6 @@ +$iconSpritePath: "../images/glyphicons-halflings.png"; +$iconWhiteSpritePath: "../images/glyphicons-halflings-white.png"; + @import "bootstrap-sass/lib/bootstrap"; /* Put your CSS here */