mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-12-15 14:32:00 +08:00
build: migrate demo from webpack to Vite (#832)
This commit is contained in:
17
vite.config.ts
Normal file
17
vite.config.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineConfig } from "vite";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import postcssNested from "postcss-nested";
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
root: "./demo",
|
||||
server: {
|
||||
host: true
|
||||
},
|
||||
css: {
|
||||
postcss: {
|
||||
plugins: [postcssNested()]
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user