Best solution is to fix the compiler.  Examine the history of CSS.g, CSSTree.g 
and CSSCompilationSession and JSCSSCompilationSession.  The fix you want may 
just involve copying a recent change to those files.

I think the only "working solutions" are what Piotr used, or you may be able to 
use inject_html to inject the HTML that will load a CSS file from some server.

A simpler change to the compiler may involve getting the compiler to extract 
css files from SWCs.  I think the compiler will not process .css files that are 
not named defaults.css.  I don't remember off-hand, but I think other assets 
can get copied out of SWCs.

HTH,
-Alex

On 1/18/19, 9:17 AM, "Piotr Zarzycki" <piotrzarzyck...@gmail.com> wrote:

    Hi Carlos,
    
    I think I have faced that problem a while ago or at least I think this is
    similar. I had couple of cash stuff which wasn't handle by compiler, so I
    put them to separate cars file. Example in transpiledactionscript website
    [1] and I linked that file in template [2].
    
    I used classes from it in app. :)
    
    [1]
    
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpiotrzarzycki21%2FTranspiledActionScript%2Fblob%2Fexamples%2FExamples%2FTranspiledActionScriptWebsite%2Fsrc%2Fresources%2Fadditional.css&amp;data=02%7C01%7Caharui%40adobe.com%7C4195010ba40a48a48c4c08d67d68cb1b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636834286369302765&amp;sdata=UOdWRbyrNzB%2FuIfJMd5z4DMUPzKCqScwhtkDRoX4Ens%3D&amp;reserved=0
    [2]
    
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpiotrzarzycki21%2FTranspiledActionScript%2Fblob%2Fexamples%2FExamples%2FTranspiledActionScriptWebsite%2Fsrc%2Fresources%2Fmdl-js-index-template.html&amp;data=02%7C01%7Caharui%40adobe.com%7C4195010ba40a48a48c4c08d67d68cb1b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636834286369302765&amp;sdata=z7lNd37zC0VCoalJ3gup%2F7k3GDIv4BpVGKqnozNkIu0%3D&amp;reserved=0
    
    Thanks,
    Piotr
    
    On Fri, Jan 18, 2019, 5:58 PM Carlos Rovira <carlosrov...@apache.org> wrote:
    
    > Hi,
    >
    > How is the best way to add css rules to a library in a way that Royale
    > compiler didn't process that rules and I get it in the final SWC css?
    >
    > I need to add CSS rules that our Royale compiler still can handle so until
    > we solve certain rules I need to use it, so I think the temporary way to 
do
    > this could be insert it in a library.
    >
    > To be more precise. I can insert css rules in the library, the problem
    > comes with the compilation of the royale Application that uses it. I need
    > that application compilation take a set of css rules and put in final CSS
    > without processing (no matter what we have).
    >
    > there's some way to do this?
    >
    > thanks
    >
    > --
    > Carlos Rovira
    > 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&amp;data=02%7C01%7Caharui%40adobe.com%7C4195010ba40a48a48c4c08d67d68cb1b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636834286369302765&amp;sdata=SW98wtGlMQqTy1eRamANpanaRccg2zWeIcFgVc093jc%3D&amp;reserved=0
    >
    

Reply via email to