@aligent/serverless-vite
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Serverless Vite

A Serverless framework plugin for Vite project bundling.

Serverless configuration

  • The plugin is configured within the serverless.yaml by adding the plugin to the list of plugins.
  • By default, nothing else need to be configured. This plugin respect vite.config file.
  • The vite InlineConfig can be added in custom.vite as shown in the example below. For more information about vite UserConfig, check out their document.
plugins:
  - 'serverless-vite'

custom:
  vite:
    envResolution: 'process.env'
    inlineConfig:
      configFile: ./vite.config.ts
      envFile: false
      define:
        ENV_VARIABLE: 'double quoted string'

Package Sidebar

Install

npm i @aligent/serverless-vite

Weekly Downloads

19

Version

0.0.1

License

MIT

Unpacked Size

12.5 kB

Total Files

20

Last publish

Collaborators

  • torbjorn.vanheeswijck
  • aligent-bot
  • aligent-danielvanderploeg
  • luke-denton-aligent
  • jarrod.swift