Friday, May 22, 2015

Re: Include a GSS file in another GSS file?

Maybe I am wrong but as far as I know closure-stylesheets does only parse CSS @Import statements but will not process them. That means it will not follow/download any @Import files and will not use them during processing. So you can not do @import url(constants.gss).

Also @provide and @require is more for better error messages in case you forgot to provide a gss file. @require does not import anything.

So if you want smaller <feature>.gss files then you have to include these smaller files in all @Source annotations of CssResources that want to use them. You can not group them in a general.gss via CSS imports.

Alternatively you might be able to use an external tool that processes a general-with-imports.gss file to produce a general.gss file that does not contain @Imports anymore (replace @Import with their imported content).


-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment