Skip to content

v3.0.0

Choose a tag to compare

@arnoson arnoson released this 20 Sep 12:51
· 154 commits to main since this release

Changes:

  • legacy polyfills are inserted automatically, if arnoson.kirby-vite.legacy is enabled

Breaking Changes:

  • using vite-plugin-kirby therefore:
    • no src/.lock file has to be created manually in development mode, instead vite-plugin-kirby creates a .dev file in the root folder
    • vite's server.port and server.origin are set by vite-plugin-kirby automatically, no need to define a strict port anymore!
    • PHP and content files are watched automatically, no need to setup vite-plugin-live-reload manually. To disable file watching see the vite-plugin-kirby documentation
  • arnoson.kirby-vite.dev and arnoson.kirby-vite.devServer options are removed (dev mode is now only based on the existence of the .dev file, and since the .dev file also stores vite's dev server url you now only have to configure your dev server in vite.config.js)
  • vite()->client() is removed as the client is inserted automatically

See the basic kit for an example vite.config.js and npm scripts.