public class BldResPath extends Object
| Constructor and Description |
|---|
BldResPath(BldFourK cfg4k,
String urlPath) |
| Modifier and Type | Method and Description |
|---|---|
BldResPath |
allDev(boolean dev)
turn on/off all inlining + file caching for easy development.
|
BldResPath |
baseDir(String baseDir) |
BldFourK |
buildResourcePath() |
BldResPath |
cacheAggregates(boolean cacheAggregates) |
BldResPath |
cfg4k(BldFourK cfg4k) |
BldResPath |
compress(boolean doGZip) |
BldResPath |
elements(String... resourcePath) |
String |
getBaseDir() |
Function<io.undertow.server.HttpServerExchange,Boolean> |
getHandlerInterceptor() |
List<JSPostProcessor> |
getProdModePostProcessors() |
File |
getProductionBuildDir() |
String[] |
getResourcePath() |
Map<String,TranspilerHook> |
getTranspilers() |
String |
getUrlPath() |
BldResPath |
handlerInterceptor(Function<io.undertow.server.HttpServerExchange,Boolean> handlerInterceptor) |
BldResPath |
inline(boolean inline)
inline js, css and static html snippets ("html imports")
|
boolean |
isCacheAggregates() |
boolean |
isCompress() |
boolean |
isInline() |
boolean |
isMinify() |
boolean |
isStripComments() |
BldResPath |
jsPostProcessors(JSPostProcessor... procs)
post processors are invoked on js fragments/files once "minify" is set to true.
|
BldResPath |
minify(boolean minify) |
BldResPath |
modify(Function<BldResPath,BldResPath> modificator) |
BldResPath |
productionBuildDir(File productionBuildDir)
production mode only, deliver given file for 'index.html' if it exists,
else transpile and bundle and create it.
|
BldResPath |
resourcePath(String[] resourcePath) |
BldResPath |
stripComments(boolean stripComments) |
BldResPath |
transpile(String ending,
TranspilerHook hook) |
BldResPath |
transpilers(Map<String,TranspilerHook> transpilers) |
BldResPath |
urlPath(String urlPath) |
public BldResPath handlerInterceptor(Function<io.undertow.server.HttpServerExchange,Boolean> handlerInterceptor)
public List<JSPostProcessor> getProdModePostProcessors()
public Function<io.undertow.server.HttpServerExchange,Boolean> getHandlerInterceptor()
public BldResPath jsPostProcessors(JSPostProcessor... procs)
procs - public BldResPath elements(String... resourcePath)
resourcePath - - a list of directories to lookup when searching for imports/resourcespublic BldResPath inline(boolean inline)
inline - public BldResPath stripComments(boolean stripComments)
public BldResPath modify(Function<BldResPath,BldResPath> modificator)
public BldResPath baseDir(String baseDir)
public String getBaseDir()
public BldResPath minify(boolean minify)
public boolean isInline()
public boolean isStripComments()
public boolean isMinify()
public BldResPath cacheAggregates(boolean cacheAggregates)
public BldResPath allDev(boolean dev)
public BldResPath compress(boolean doGZip)
public BldFourK buildResourcePath()
public String getUrlPath()
public boolean isCacheAggregates()
public String[] getResourcePath()
public boolean isCompress()
public BldResPath transpile(String ending, TranspilerHook hook)
public Map<String,TranspilerHook> getTranspilers()
public BldResPath cfg4k(BldFourK cfg4k)
public BldResPath urlPath(String urlPath)
public BldResPath resourcePath(String[] resourcePath)
public BldResPath productionBuildDir(File productionBuildDir)
productionBuildDir - public File getProductionBuildDir()
public BldResPath transpilers(Map<String,TranspilerHook> transpilers)
Copyright © 2019. All rights reserved.