On Friday, November 7, 2014 1:41:03 PM UTC+1, Christian X wrote: > > the file is requested from > http://127.0.0.1:9876/overwrite.css >
Ah, yes, from https://gwt.googlesource.com/gwt/+/2.7.0-rc1/dev/core/src/com/google/gwt/core/ext/linker/impl/loadExternalStylesheets.js and https://gwt.googlesource.com/gwt/+/2.7.0-rc1/dev/core/src/com/google/gwt/core/ext/linker/impl/computeUrlForResource.js, your path being relative is resolved against GWT.getModuleBaseForStaticFiles() (i.e. SDM), because in many cases you'd want to reference a file that's in your module's "public path" so you want it resolved against your current sources to see your changes without having to restart DevMode/SDM. You'll have to change either - the path to your CSS (e.g. /overview.css, but that won't necessarily work once deployed in production) - the location of your CSS (e.g. put it in your module's public path and reference it as <stylesheet src="overview.css"/>) - the way you load it (e.g. inject it from your onModuleLoad, either as a StyleElement added to the Document; or possibly as a TextResource that you inject using StyleInjector –and use one less request to the server) -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/8eb2f667-7003-4bcf-aef2-cdab5cac64a2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
