Compile Flex CSS Files
I'm using idea-IU-95.214 and I can't figure out how to get it to compile a Flex CSS file. With Flex you can compile a CSS file into a SWF file for runtime loading. I've tried to create a new Flex Facet in my Module and set the Main class to the css file but that didn't work. Any ideas?
Please sign in to leave a comment.
The only way currently is to use custom flex compiler configuration file.
Will be improved soon: http://youtrack.jetbrains.net/issue/IDEA-54169
Alexander:
It is awesome that http://youtrack.jetbrains.net/issue/IDEA-54169 exists - do you know when the version for EAP that this affects will be released?
Do you think it will be in Release 9.0.3?
I just found some client code that won't compile in intellij without this feature which is a bit problematic as I am not sure how to work around it.
-Adam
I'm afraid not in 9.0.3, but IDEA 10 EAPs will start shortly.
As a workaround you may create custom_config.xml file like this:
<flex-config xmlns="http://www.adobe.com/2006/flex-config">
<file-specs>
<path-element>path/to/file.css</path-element>
</file-specs>
<output>output/file/name.swf</output>
</flex-config>
and in Flex facet settings check 'Use custom compiler configuration file'.
<output> tag can be omitted - default output swf file name is equal to css file name (only extension is changed)
Paths are either absolute or relative to project root.