Skip to content

Commit

Permalink
ability to run unable vite dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
robaho committed Jul 17, 2024
1 parent 0cd8048 commit 75dd6d3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions web_lit/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import { viteStaticCopy } from 'vite-plugin-static-copy';

const iconsPath = 'node_modules/@shoelace-style/shoelace/dist/assets/icons';

console.log(process.cwd());

// https://vitejs.dev/config/
export default defineConfig({
base: '/lit',
export default defineConfig((env) => { return {
base: env.command === 'build' ? '/lit/' : undefined,
resolve: {
alias: [
{
Expand Down Expand Up @@ -35,4 +37,4 @@ export default defineConfig({
'/api': 'http://localhost:8080'
}
}
});
}});

0 comments on commit 75dd6d3

Please sign in to comment.