Package com.vaadin.flow.server.frontend
Class TaskGenerateTailwindJs
java.lang.Object
com.vaadin.flow.server.frontend.AbstractFileGeneratorFallibleCommand
com.vaadin.flow.server.frontend.AbstractTaskClientGenerator
com.vaadin.flow.server.frontend.TaskGenerateTailwindJs
- All Implemented Interfaces:
FallibleCommand
Generate the
tailwind.js wrapper, which injects the compiled
Tailwind CSS into the page, into the generated frontend folder. The file is
written on every build.
For internal use only. May be renamed or removed in a future release.
- Since:
- 25.0
-
Method Summary
Methods inherited from class com.vaadin.flow.server.frontend.AbstractTaskClientGenerator
executeMethods inherited from class com.vaadin.flow.server.frontend.AbstractFileGeneratorFallibleCommand
setGeneratedFileSupport, track, track, writeIfChanged, writeIfChanged
-
Method Details
-
getFileContent
Description copied from class:AbstractTaskClientGeneratorGet file content for writing to the generated file.- Specified by:
getFileContentin classAbstractTaskClientGenerator- Returns:
- content of the file.
- Throws:
IOException- if IO error happens while reading file content.
-
getGeneratedFile
Description copied from class:AbstractTaskClientGeneratorGet the generated file where content will be written.- Specified by:
getGeneratedFilein classAbstractTaskClientGenerator- Returns:
- the generated file.
-
shouldGenerate
protected boolean shouldGenerate()Description copied from class:AbstractTaskClientGeneratorCheck if it should generate the file or not.- Specified by:
shouldGeneratein classAbstractTaskClientGenerator- Returns:
- true if it should generate, false otherwise.
-