I am trying to include a static CSS file, app.css, into my application.
When it comes to including JS files, I know how to do it using ScriptInjector like this:
ScriptInjector.fromUrl(pathToJsFile)
.setWindow(ScriptInjector.TOP_WINDOW)
.setCallback(new Callback<Void, Exception>() {
@Override
public void onFailure(Exception reason) {
}
@Override
public void onSuccess(Void result) {
}
})
.inject();
However, I cannot find an equivalent for CSS files. StyleInjector does not seem to have a method like StyleInjector.fromUrl(...).
Is there a way to add static CSS files to my GWT application?
Edit:
This is how my static CSS file looks like:
* {
}
html {
}
body {
}