@aligent/serverless-vite
v0.0.1
Published
A Serverless framework plugin for Vite project bundling
Downloads
7
Readme
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 incustom.vite
as shown in the example below. For more information aboutvite
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'