Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

Commit dd6a0cb

Browse files
committed
fix(build): don't override generated css files
Fixed #231 CSS was previously generated through compass and moved into a `main.css` file, but later overwritten by `concat` task generated by `usemin`. This removes the usemin block around the CSS link and adopts the same schema used in `generator-webapp`.
1 parent 01cee4b commit dd6a0cb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,14 @@ Generator.prototype.askForModules = function askForModules() {
139139
// Waiting a more flexible solution for #138
140140
Generator.prototype.bootstrapFiles = function bootstrapFiles() {
141141
if (this.compassBootstrap) {
142-
this.copy('styles/bootstrap.scss', path.join(this.appPath, 'styles/style.scss'));
143-
this.indexFile = this.appendStyles(this.indexFile, 'styles/main.css', ['styles/style.css']);
142+
this.copy('styles/bootstrap.scss', path.join(this.appPath, 'styles/main.scss'));
144143
} else if (this.bootstrap) {
145144
this.log.writeln('Writing compiled Bootstrap');
146145
var cssFiles = ['styles/bootstrap.css', 'styles/main.css'];
147146

148147
cssFiles.forEach(function (css) {
149148
this.copy(css, path.join(this.appPath, css));
150149
}.bind(this));
151-
this.indexFile = this.appendStyles(this.indexFile, 'styles/main.css', cssFiles);
152150
}
153151
};
154152

templates/common/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<meta name="description" content="">
1111
<meta name="viewport" content="width=device-width">
1212
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
13+
<link rel="stylesheet" href="styles/main.css">
1314
</head>
1415
<body ng-app="<%= _.camelize(appname) %>App">
1516
<!--[if lt IE 7]>

0 commit comments

Comments
 (0)