@Mojo(name="build-frontend",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
defaultPhase=PREPARE_PACKAGE)
public class BuildFrontendMojo
extends FlowModeAbstractMojo
Constants.PACKAGE_JSON file with the NpmPackage
annotations defined in the classpath,npm installFrontendUtils.IMPORTS_NAME file imports with the
JsModule Theme and JavaScript annotations defined in
the classpath,FrontendUtils.WEBPACK_CONFIG file.| Modifier and Type | Field and Description |
|---|---|
protected File |
frontendResourcesDirectory
Defines the project frontend directory from where resources should be
copied from for use with webpack.
|
compatibility, compatibilityMode, productionMode, webpackOutputDirectory| Constructor and Description |
|---|
BuildFrontendMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
@Parameter(defaultValue="${project.basedir}/src/main/resources/META-INF/resources/frontend")
protected File frontendResourcesDirectory
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class FlowModeAbstractMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2000–2019 Vaadin Ltd. All rights reserved.