Skip to content
Snippets Groups Projects
vite.config.js 519 B
Newer Older
const { defineConfig } = require('vite')
Midhun Suresh's avatar
Midhun Suresh committed
const { resolve } = require("path");

module.exports = defineConfig({
Midhun Suresh's avatar
Midhun Suresh committed
    build: {
    rollupOptions: {
      input: {
        main: resolve(__dirname, 'chatterbox.html'),
        parent: resolve(__dirname, '/src/parent-style.css')
      }
        },
        outDir: "./build/chatterbox"
  },
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
        },
    },
});