Search in sources :

Example 1 with Configuration

use of com.github.sommeri.less4j.LessCompiler.Configuration in project webanno by webanno.

the class WicketApplicationBase method initBootstrap.

protected void initBootstrap() {
    LessCompilerConfigurationFactory lessConfigFactory = () -> {
        Configuration lessConfig = new Configuration();
        lessConfig.setCompressing(RuntimeConfigurationType.DEPLOYMENT.equals(getConfigurationType()));
        return lessConfig;
    };
    WicketWebjars.install(this);
    BootstrapLess.install(this, lessConfigFactory);
    Bootstrap.install(this);
    IBootstrapSettings settings = Bootstrap.getSettings(this);
    settings.setCssResourceReference(CustomBootstrapLessReference.get());
}
Also used : IBootstrapSettings(de.agilecoders.wicket.core.settings.IBootstrapSettings) Configuration(com.github.sommeri.less4j.LessCompiler.Configuration) LessCompilerConfigurationFactory(de.agilecoders.wicket.less.LessCompilerConfigurationFactory)

Aggregations

Configuration (com.github.sommeri.less4j.LessCompiler.Configuration)1 IBootstrapSettings (de.agilecoders.wicket.core.settings.IBootstrapSettings)1 LessCompilerConfigurationFactory (de.agilecoders.wicket.less.LessCompilerConfigurationFactory)1