0.0.17 • Published 10 months ago

vite-plugin-doubleshot v0.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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 -D

Usage

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

10 months ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.14

1 year ago

0.0.13

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.1

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.6

3 years ago

0.1.0-beta.2

3 years ago

0.1.0-beta.1

3 years ago

0.1.0-beta.0

3 years ago

0.1.0-alpha.2

3 years ago

0.1.0-alpha.1

3 years ago

0.1.0-alpha.0

3 years ago