-
Notifications
You must be signed in to change notification settings - Fork 12.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combining CSS #921
Comments
Yeah I opened a feature request for just that - #831. We're actually going to move the build script to a separate repo and some smart people are looking at reworking it entirely to include this functionality and a lot more. |
@necolas Looks awesome! |
You should be able to use |
OK I'm going to close this as |
I added the style style2.css to the CSS folder.
Put some styles in it.
added this tag right after the first CSS linkage:
<link rel="stylesheet" href="css/style2.css">
Added this line to "project.properties":
file.stylesheets = style2.css
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:
<link rel="stylesheet" href="css/style.css">
and
<link rel="stylesheet" href="css/style2.css">
would be removed and replaced with one tag looking like this:
<link rel="stylesheet" href="css/af328e9.css">
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.
The text was updated successfully, but these errors were encountered: