public final class ClosureBundler extends Object
Constructor and Description |
---|
ClosureBundler() |
ClosureBundler(Transpiler transpiler) |
Modifier and Type | Method and Description |
---|---|
static void |
appendInput(Appendable out,
DependencyInfo info,
String contents)
Append the contents of the string to the supplied appendable.
|
void |
appendRuntimeTo(Appendable out) |
void |
appendTo(Appendable out,
DependencyInfo info,
com.google.common.io.CharSource content)
Append the contents of the CharSource to the supplied appendable.
|
void |
appendTo(Appendable out,
DependencyInfo info,
File content,
Charset contentCharset)
Append the contents of the file to the supplied appendable.
|
void |
appendTo(Appendable out,
DependencyInfo info,
String content)
Append the contents of the string to the supplied appendable.
|
String |
getSourceMap(String path)
Subclasses that need to provide a source map for any transformed input can return it with this
method.
|
ClosureBundler |
useEval(boolean useEval) |
ClosureBundler |
withPath(String newPath) |
ClosureBundler |
withSourceUrl(String newSourceUrl) |
public ClosureBundler()
public ClosureBundler(Transpiler transpiler)
public final ClosureBundler useEval(boolean useEval)
public final ClosureBundler withSourceUrl(String newSourceUrl)
public final ClosureBundler withPath(String newPath)
public static void appendInput(Appendable out, DependencyInfo info, String contents) throws IOException
IOException
public void appendTo(Appendable out, DependencyInfo info, String content) throws IOException
IOException
public void appendTo(Appendable out, DependencyInfo info, File content, Charset contentCharset) throws IOException
IOException
public void appendTo(Appendable out, DependencyInfo info, com.google.common.io.CharSource content) throws IOException
IOException
public void appendRuntimeTo(Appendable out) throws IOException
IOException
Copyright © 2009-2017 Google. All Rights Reserved.