Repository navigation
Releases: Pollora/vite-config
Releases · Pollora/vite-config
Release list
v1.1.0
A standalone layout for a classic theme, a plugin or a Bedrock site, with no Pollora project around it.
pollora({ type: 'theme', layout: 'standalone' }) builds the package inside itself instead of under a shared public directory: the build in build/, the hot file at hot, and a relative base (./) in production, so the built CSS and chunks find each other wherever WordPress serves the folder from (a subdirectory install, Bedrock's web/app). In development the dev server serves from its root and the hot file holds its origin. It is the layout read by pollora/assets without Laravel.
- New options:
layout(polloraby default),buildDirectory,hotFile;publicDirectorydefaults to.when standalone. New exportlayoutOf(). - The Pollora layout is unchanged.
- Checked in a real WordPress in a subdirectory and in Bedrock: production build, two dev servers at once with the HMR websocket, and a missing build.