Skip to content

Releases: Pollora/vite-config

Release list

v1.1.0

Choose a tag to compare

@ogorzalka ogorzalka released this 15 Oct 09:51

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 (pollora by default), buildDirectory, hotFile; publicDirectory defaults to . when standalone. New export layoutOf().
  • 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.