I tried these compiler settings:

-defaults-css-url=styles.css -defaults-css-files=styles.css -theme=styles.css

I've created a dummy CSS file with:

/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";

.fontButton {
        fontSize: 16;
        fontWeight: bold;
}

s|List{
        skinClass: null;
}

But nothing changes as the MyModule_Styles class is still generated.

30.10.2019, 21:59, "Alex Harui" <aha...@adobe.com.invalid>:
> Don't know for sure. There is some logic that won't generate that class if 
> there are no CSS style definitions to output. You might be able to control 
> what CSS the compiler sees by setting the compiler.defaults-css-files option 
> and/or messing around with the .css files in the SWCs.
>
> HTH,
> -Alex
>
> On 10/30/19, 1:46 PM, "Ramazan Ergüder Bekrek" <e.bek...@yandex.com> wrote:
>
>     Is there also any other way to remove the generation of the 
> _Module_Styles class which is always compiled by default?
>
>     30.10.2019, 17:01, "Alex Harui" <aha...@adobe.com.invalid>:
>     > Don't know for sure. Try setting:
>     >
>     > -locales=
>     >
>     > IOW, specify an empty list of locales. The compiler looks like it will 
> not attempt to add resource bundles if there are no locales.
>     >
>     > HTH,
>     > -Alex
>     >
>     > On 10/30/19, 7:45 AM, "Ramazan Ergüder Bekrek" <e.bek...@yandex.com> 
> wrote:
>     >
>     > Greetings again!
>     >
>     > I would like to know if there is a way to bypass the Resource 
> Compilation of a module or an Application in Flex.
>     > I realized that duplicates are in every SWF and I don't need them. In 
> the RSL loader that is loading the Apache Flex SWFs
>     > from my app all the Resources are already there and loaded once. I 
> don't want that to happen in my sub modules or sub applications because they 
> are redundant
>     > and takes up RAM resources in the VM.
>     >
>     > Is this possible?
>     >
>     > Ergü

Reply via email to