0.0.17 • Published 2 years ago
vite-plugin-doubleshot v0.0.17
vite-plugin-doubleshot
Description
It's a Vite plugin with integrated @doubleshot/builder. You can use it to help Vite quickly build node backend or electron's main process code.
Warning: this project is in early stage, do not use in production environment
Install
npm i vite-plugin-doubleshot -D
# Or Yarn
yarn add vite-plugin-doubleshot -D
# Or PNPM
pnpm add vite-plugin-doubleshot -DUsage
In Vite config file(eg. .vite.config.ts), add this plugin:
import { defineConfig } from 'vite'
import { VitePluginDoubleshot } from 'vite-plugin-doubleshot'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
VitePluginDoubleshot({
type: 'electron',
main: 'dist/main/index.js',
entry: 'src/index.ts',
outDir: 'dist/main',
external: ['electron']
}),
]
})You can find more configurations through the type definition file.
License
MIT License © 2022 Archer Gu
0.0.17
2 years ago
0.0.15
2 years ago
0.0.16
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.11
3 years ago
0.0.12
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.1
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.6
4 years ago
0.1.0-beta.2
4 years ago
0.1.0-beta.1
4 years ago
0.1.0-beta.0
4 years ago
0.1.0-alpha.2
4 years ago
0.1.0-alpha.1
4 years ago
0.1.0-alpha.0
4 years ago