vite.config.js 467 B

1234567891011121314151617181920
  1. import { defineConfig } from 'vite';
  2. import solidPlugin from 'vite-plugin-solid';
  3. // import devtools from 'solid-devtools/vite';
  4. export default defineConfig({
  5. plugins: [
  6. /*
  7. Uncomment the following line to enable solid-devtools.
  8. For more info see https://github.com/thetarnav/solid-devtools/tree/main/packages/extension#readme
  9. */
  10. // devtools(),
  11. solidPlugin(),
  12. ],
  13. server: {
  14. port: 3000,
  15. },
  16. build: {
  17. target: 'esnext',
  18. },
  19. });