h5bp/html5-boilerplate — Issue #921: Combining CSS
Author: Benjaminsson
Created: 2012-01-18 17:31:23+00:00
State: open

I added the style style2.css to the CSS folder.
Put some styles in it.
added this tag right after the first CSS linkage:
``````
Added this line to "project.properties":
```file.stylesheets = style2.css```

"You can now add multiple stylesheets to the project (defined in the project.properties file) and they will be concatenated into 1 file, with any default stylesheets defined in the default.properties file being added at the end."

The result i expected considering the quote from the docs above was that the files style.css and style2.css would merge into the same file and get minified and that in index.html both the lines:
``````
and
``````
would be removed and replaced with one tag looking like this:
``````

instead both files gets minified separately and only the first style.css gets the hash name. The first CSS link tag gets replaced with the hashed one but the second stays the same.

Off topic question/feature request that can be ignored: Is it possible to make the CSS part of the build script work in the same way as the Javascript do? Would be more consistent and easier to understand that way.