Skip to content
Snippets Groups Projects
vite.config.js 470 B
Newer Older
  • Learn to ignore specific revisions
  • const path = require('path')
    const { defineConfig } = require('vite')
    
    module.exports = defineConfig({
    
    Midhun Suresh's avatar
    Midhun Suresh committed
    /*     build: {
    
    Midhun Suresh's avatar
    Midhun Suresh committed
            lib: {
                entry: path.resolve(__dirname, "src/main.ts"),
                name: "chatterbox",
                fileName: "chatterbox.js",
            },
    
    Midhun Suresh's avatar
    Midhun Suresh committed
        }, */
    
    Midhun Suresh's avatar
    Midhun Suresh committed
        server: {
            fs: {
                // Allow serving files from hydrogen-web/target (for fonts and images)
    
    Midhun Suresh's avatar
    Midhun Suresh committed
                allow: ["../hydrogen-web/target", "."],
    
    Midhun Suresh's avatar
    Midhun Suresh committed
            },
        },
    });