Skip to content

Commit

Permalink
feature: build config
Browse files Browse the repository at this point in the history
  • Loading branch information
linround committed Mar 21, 2024
1 parent ccc1ad5 commit d58933b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions process.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@
```text
npm install -D less
```
## 在安装谷歌浏览器中无法打开网站。需要进行打包配置

```text
build: {
target: ['es2015', 'edge88', 'firefox78', 'chrome87', 'safari14'],
},
```
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
build: {
target: ['es2015', 'edge88', 'firefox78', 'chrome87', 'safari14'],
},
plugins: [react()],
})

0 comments on commit d58933b

Please sign in to comment.