Skip to content
Snippets Groups Projects
Commit 017ceee9 authored by Midhun Suresh's avatar Midhun Suresh
Browse files

Update vite config

parent 62833702
No related branches found
No related tags found
No related merge requests found
......@@ -2,12 +2,17 @@ const path = require('path')
const { defineConfig } = require('vite')
module.exports = defineConfig({
build: {
lib: {
entry: path.resolve(__dirname, 'src/main.ts'),
name: 'MyLib',
//fileName: (format) => `my-lib.${format}.js`
fileName: 'chatterbox.js'
}
}
})
\ No newline at end of file
build: {
lib: {
entry: path.resolve(__dirname, "src/main.ts"),
name: "chatterbox",
fileName: "chatterbox.js",
},
},
server: {
fs: {
// Allow serving files from hydrogen-web/target (for fonts and images)
allow: ["../hydrogen-web/target"],
},
},
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment