1.2.7 • Published 2 years ago

feathers-vite v1.2.7

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
2 years ago

Feathers Vite Plugin

Try it Online

Requirements

  1. Your Feathers app needs to be created, setup and returned in a function called main

Example usage:

// vite.config.ts
// https://vitejs.dev/config/
import { defineConfig } from 'vite'
import { feathers } from 'feathers-vite'

// https://vitejs.dev/config/#async-config
export default defineConfig(async () => {
  return {
    plugins: [feathers({ app: 'src/app.ts', port: 8099 })]
  }
})

Important notes

  • Your feathers server will run on another port... make sure to configure socket.io with cors
    • ie: socketio({ cors: { origin: '*' } })
  • To make things easier, an Environment Variable named VITE_FV_URL is defined in development.
    • In client apps const url = import.meta.env.VITE_FV_URL
  • We listen to the an env var named VITE_FV_SSG, if it is set to "off" the plugin won't run.
  • This plugin will not run with the build command.
1.2.7

2 years ago

1.2.0

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.0.7

3 years ago

1.1.5

3 years ago

1.0.6

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

0.10.3

3 years ago

0.10.2

3 years ago

0.10.1

3 years ago

0.10.0

3 years ago

0.9.13

3 years ago

0.9.12

3 years ago

0.9.10

3 years ago

0.9.9

3 years ago

0.9.8

3 years ago

0.9.7

3 years ago

0.9.6

3 years ago

0.9.5

3 years ago

0.9.4

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.9.0

3 years ago