-
- All Implemented Interfaces:
-
org.gradle.api.Named
public abstract class KotlinWebpackRule implements Named
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classKotlinWebpackRule.Loader
-
Constructor Summary
Constructors Constructor Description KotlinWebpackRule(String name)
-
Method Summary
Modifier and Type Method Description final BooleangetEnabled()final UnitsetEnabled(Boolean enabled)abstract StringgetTest()Raw rule testfield value.abstract UnitsetTest(String test)Raw rule testfield value.final List<String>getInclude()final UnitsetInclude(List<String> include)final List<String>getExclude()final UnitsetExclude(List<String> exclude)Booleanvalidate()Validates the rule state just before it getting applied. Collection<RequiredKotlinJsDependency>dependencies(NpmVersions versions)Provides a list of required npm dependencies for the rule to function. StringgetName()Booleanequals(Object other)IntegerhashCode()-
-
Constructor Detail
-
KotlinWebpackRule
KotlinWebpackRule(String name)
-
-
Method Detail
-
getEnabled
@Input() final Boolean getEnabled()
-
setEnabled
final Unit setEnabled(Boolean enabled)
-
getTest
@Input() abstract String getTest()
Raw rule
testfield value. Needs to be wrapped in quotes when using string notation.
-
setTest
abstract Unit setTest(String test)
Raw rule
testfield value. Needs to be wrapped in quotes when using string notation.
-
getInclude
@Input() final List<String> getInclude()
-
setInclude
final Unit setInclude(List<String> include)
-
getExclude
@Input() final List<String> getExclude()
-
setExclude
final Unit setExclude(List<String> exclude)
-
validate
Boolean validate()
Validates the rule state just before it getting applied. Returning false will skip the rule silently. To terminate the build instead, throw an error.
-
dependencies
Collection<RequiredKotlinJsDependency> dependencies(NpmVersions versions)
Provides a list of required npm dependencies for the rule to function.
-
-
-
-