Read an overview about Pages in Frontal
The core concept behind Frontal is to auto inject bundles within
.html pages based on
bundles property is configured within your
The default behaviour is that each page within the
pages directory is processed by Frontal, and
during development, these pages are exposed to the server with Fast Reloads and HMR enabled, for example, assume we have the following pages.
these pages will be available during development via:
During the build process, each page within the
pages directory is processed and copied over to
the final build directory with nesting preserved.
When doing a
$ frontal build the pages will be placed in the build directory as follows:
This makes it more convenient for static hosting services to directly be able to find your pages and host your built project with no further configuration.
The static nature of working with HTML makes it very easy to get repetitive with your codes, but with Frontal, there are features that makes working with HTML a breath: