vite-plugin-static-asset-fixer
v1.0.4
Published
Vite plugin to update assets paths when in dev mode.
Readme
Vite Static Asset Fixer
Vite plugin to transform asset paths when developing locally.
Usage
vite.config.js
import staticAssetFixer from 'vite-plugin-static-asset-fixer'
export default {
// ...
plugins: [
staticAssetFixer({
/* options */
})
],
}Options
dir
Type: String
Default: assets
Local static asset directory
host
Type: String
Default: localhost
The host name of your local dev environment.
https
Type: Boolean
Default: true
The protocol of your local dev environment.
port
Type: Number
Default: 3000
The port number of your local dev environment.
