5.1.0 • Published 4 months ago

vite-hugo-plugin v5.1.0

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

Vite HUGO Plugin

Plugin that makes integrating Vite into Hugo application painless.

Vite < 3.0.0

This plugin is compatibile with vite under 3.0.0 version, but may cause some typescript typing error, check https://github.com/DcBD/vite-hugo-plugin/pull/2 for more information.

For older version of hugo

Added hugoConfigFileName property to specify which hugo config it should use. By default it's hugo.toml

Example usage

import { resolve } from 'path';
import { defineConfig } from 'vite';
import hugoPlugin from 'vite-hugo-plugin'

// Root directory of our application
const appDir = __dirname;

// The directory where hugo builds it's files.
const hugoOutDir = resolve(appDir, 'public');

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [
        hugoPlugin({ appDir, hugoOutDir })
    ]
});
5.1.0

4 months ago

5.0.3

4 months ago

5.0.2

4 months ago

5.0.1

4 months ago

5.0.0

4 months ago

3.1.0

1 year ago

3.0.5

2 years ago

3.0.4

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago