Follow these steps to build your theme’s files with the Build task. Note that this task only works for themes that use the liferay JS Theme Toolkit, such as those created with the Liferay Theme Generator.
-
Navigate to your theme’s root folder and run
gulp build
. -
The
gulp build
task generates the base theme files (in thebuild
folder), compiles Sass into CSS, and compresses all theme files into a.war
file (in thedist
folder), that you can deploy to your server. Copy any of these files and folders to your theme’ssrc
folder to modify them. -
Deploy the
war
file to your app server to make it available.