0.0.1 • Published 10 months ago

@aligent/serverless-vite v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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'