Primeira Versão do Sistema de componentes Vue
This commit is contained in:
commit
35f9d57ce7
22 changed files with 1605 additions and 0 deletions
37
vite.config.ts
Normal file
37
vite.config.ts
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
|
||||
|
||||
|
||||
import { defineConfig } from "vite"
|
||||
import vue from "@vitejs/plugin-vue"
|
||||
import vuetify from "vite-plugin-vuetify"
|
||||
import path from "node:path"
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
vue(),
|
||||
vuetify({ autoImport: true }),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
lib: {
|
||||
entry: path.resolve(__dirname, "src/index.ts"),
|
||||
name: "eli_vue",
|
||||
fileName: (format) => `eli-vue.${format}.js`,
|
||||
},
|
||||
rollupOptions: {
|
||||
// não bundle o Vue
|
||||
external: ["vue", /^vuetify(\/.*)?$/],
|
||||
output: {
|
||||
globals: {
|
||||
vue: "Vue",
|
||||
vuetify: "Vuetify",
|
||||
},
|
||||
exports: "named",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue