public class LessModuleBuilder extends CSSModuleBuilder implements IExtensionSingleton
IExtensionInitializer.IExtensionRegistrar
AMD_DEFINE_SHIM_JS, BLANK, DEFAULT_SCOPE_POOL_SIZE, EXCLUDELIST_CONFIGPARAM, EXPORTS, imageSizeThreshold, IMAGETYPES_CONFIGPARAM, includeAMDPaths, INCLUDEAMDPATHS_CONFIGPARAM, INCLUDEAMDPATHS_DEFAULT_VALUE, INCLUDELIST_CONFIGPARAM, INITIALIZER_THREAD_POOL_SIZE, inlinedImageExcludeList, INLINEIMAGES_REQPARAM_NAME, inlineImports, INLINEIMPORTS_CONFIGPARAM, INLINEIMPORTS_DEFAULT_VALUE, INLINEIMPORTS_REQPARAM_NAME, MINIFIER_INITIALIZATION_JS, MINIFIER_INITIALIZATION_VAR, MINIFYER_RES_NAME, MODULE, PLUGINS, POSTCSS, POSTCSS_CONFIGPARAM, POSTCSS_INSTANCE, POSTCSS_OPTIONS, POSTCSS_RES_NAME, POSTCSSPLUGINS_CONFIGPARAM, PREAMBLE, PROCESS, protocolPattern, s_cacheKeyGenerators, s_inlineableImageTypes, SCOPE_POOL_TIMEOUT_SECONDS, SCOPEPOOLSIZE_CONFIGPARAM, SIZETHRESHOLD_CONFIGPARAM, SIZETHRESHOLD_DEFAULT_VALUE, urlPattern, UTF8_CHARSET
Modifier | Constructor and Description |
---|---|
|
LessModuleBuilder() |
protected |
LessModuleBuilder(IAggregator aggregator) |
Modifier and Type | Method and Description |
---|---|
org.mozilla.javascript.Scriptable |
createThreadScope(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable protoScope)
Creates a thread scope for the PostCSS processor and it's plugins.
|
boolean |
handles(String mid,
IResource resource)
Returns true if this module builder handles the specified resource
|
protected void |
init() |
protected String |
postcss(String css,
IResource resource)
Runs given CSS through PostCSS processor for minification and any other processing
by configured plugins
.
|
protected String |
processLess(String filename,
String css) |
configLoaded, dequote, getBase64, getCacheKeyGenerators, getContentReader, getThreadScopes, initialize, initPostcss, inlineImageUrls, inlineImports, readToString, shutdown, toRegexp
build, isScript
public LessModuleBuilder()
protected LessModuleBuilder(IAggregator aggregator)
protected void init()
public org.mozilla.javascript.Scriptable createThreadScope(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable protoScope)
CSSModuleBuilder
createThreadScope
in class CSSModuleBuilder
cx
- the Rhino ContextprotoScope
- the parent scope objectprotected String postcss(String css, IResource resource) throws IOException
CSSModuleBuilder
postcss
in class CSSModuleBuilder
IOException
protected String processLess(String filename, String css) throws IOException
IOException
public boolean handles(String mid, IResource resource)
IModuleBuilder
handles
in interface IModuleBuilder
handles
in class CSSModuleBuilder
mid
- the module idresource
- the resource for the module idCopyright © 2011-2015 IBM. All Rights Reserved.