What I would like is a way to have .G1qdtwdtK-MyWidgetName instead
of .G1qdtwdtK for a css class named .MyWidgetName
Is that feasible ?
thanks !
<set-configuration-property name="CssResource.style" value="pretty" />
On 6 jan, 16:07, emerix <rafa...@gmail.com> wrote:
> Hi,
> I found on this pagehttp://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideClien...
@external styleName;
in the ui:style section to prevent particular style names from being
obfuscated. I found the example here a little confusing, but the
concept is simple enough:
http://code.google.com/p/google-web-toolkit/wiki/CssResource#External_and_legacy_scopes
On Jan 6, 9:07 am, emerix <rafa...@gmail.com> wrote:
> Hi,
> I found on this pagehttp://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideClien...
On Jan 7, 6:42 am, Brendan Kenny <bcke...@gmail.com> wrote:
> Yeah, I ran into the same problem. If the issue is just exposing the
> style names during development (and you're not looking for this
> particular solution for an additional reason), I would do as fvisticot
> suggests and then just remove that line from your module's xml file
> when you're ready for production mode. It's been a while since I
> looked at this, but I believe I also just used
>
> @external styleName;
>
> in the ui:style section to prevent particular style names from being
> obfuscated. I found the example here a little confusing, but the
> concept is simple enough:http://code.google.com/p/google-web-toolkit/wiki/CssResource#External...
Then in the ant file I have a gwtc_debug target
so that:
<target name="gwtc" depends="javac" description="GWT compile to
JavaScript">
<java failonerror="true" fork="true"
classname="com.google.gwt.dev.Compiler">
<classpath>
<pathelement location="src"/>
<path refid="project.class.path"/>
</classpath>
<!-- add jvmarg -Xss16M or similar if you see a
StackOverflowError -->
<jvmarg value="-Xmx256M"/>
<!-- Additional arguments like -style PRETTY or -logLevel DEBUG
-->
<arg value="path.Application"/>
</java>
</target>
<target name="gwtc_debug" depends="javac" description="GWT compile
to JavaScript">
<java failonerror="true" fork="true"
classname="com.google.gwt.dev.Compiler">
<classpath>
<pathelement location="src"/>
<path refid="project.class.path"/>
</classpath>
<!-- add jvmarg -Xss16M or similar if you see a
StackOverflowError -->
<jvmarg value="-Xmx256M"/>
<!-- Additional arguments like -style PRETTY or -logLevel DEBUG
-->
<arg value="path.ApplicationDebug"/>
<arg value="-style"/>
<arg value="PRETTY"/>
</java>
</target>
This saves some time when switch between development and deployment.