0.17.0 โข Published 11 months ago
@ranger-theme/vite-config v0.17.0
@ranger-theme/vite-config
๐ Introduce
vite้ ็ฝฎ้กน
๐ Documentation
๐ฆ Install
$ npm install --save-dev @ranger-theme/vite-config
# or
$ yarn add --save-dev @ranger-theme/vite-config
# or
$ pnpm add --save-dev @ranger-theme/vite-config
๐จ Usage
// vite.config.ts
import { baseConfig } from '@ranger-theme/vite-config'
import path from 'node:path'
import type { ConfigEnv } from 'vite'
import { defineConfig } from 'vite'
import pkg from './package.json'
const viteConfig: any = ({ mode }: ConfigEnv) => {
const defaultConfig: any = baseConfig({
mode,
pkg,
https: true,
entry: '/bootstrap/main.tsx',
outDir: 'build',
cdnOptions: {
enableInDevMode: true,
modules: ['react', 'react-dom']
}
})
return defineConfig({
...defaultConfig,
resolve: {
alias: {
'@': path.resolve(__dirname, './'),
'~': path.resolve(__dirname, './')
}
},
server: {
host: '127.0.0.1',
port: 3000
}
})
}
export default viteConfig
0.17.0
11 months ago
0.16.0
11 months ago
0.15.0
11 months ago
0.14.0
11 months ago
0.13.0
12 months ago
0.12.0
12 months ago
0.11.0
12 months ago
0.10.0
12 months ago
0.9.0
12 months ago
0.8.0
1 year ago
0.7.1
1 year ago
0.7.0
1 year ago
0.6.0
1 year ago
0.5.1
1 year ago
0.5.0
1 year ago
0.4.0
1 year ago
0.3.0
1 year ago
0.2.0
1 year ago
0.1.0
1 year ago