Skip to content

Commit

Permalink
Update of vite config for new pages
Browse files Browse the repository at this point in the history
  • Loading branch information
otigges committed Jan 10, 2024
1 parent 0d4e36a commit 23d625e
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@ import { resolve } from "path";
import handlebars from "vite-plugin-handlebars";

export default {
root: resolve(__dirname, "src"),
build: {
outDir: "../dist",
rollupOptions: {
input: {
main: new URL("./src/index.html", import.meta.url).pathname,
imprint: new URL("./src/imprint.html", import.meta.url).pathname,
},
root: resolve(__dirname, "src"),
build: {
outDir: "../dist",
rollupOptions: {
input: {
main: new URL("./src/index.html", import.meta.url).pathname,
imprint: new URL("./src/imprint.html", import.meta.url).pathname,
terms: new URL("./src/terms.html", import.meta.url).pathname,
privacy: new URL("./src/privacy.html", import.meta.url).pathname,
},
},
},
plugins: [
handlebars({
partialDirectory: resolve(__dirname, "src/partials"),
}),
],
server: {
port: 8000,
},
},
plugins: [
handlebars({
partialDirectory: resolve(__dirname, "src/partials"),
}),
],
server: {
port: 8000,
},
};

0 comments on commit 23d625e

Please sign in to comment.