Skip to content

Commit

Permalink
config:移除多界面入口配置
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazi7 committed Nov 6, 2024
1 parent 5b05d10 commit 230ff0f
Showing 1 changed file with 18 additions and 27 deletions.
45 changes: 18 additions & 27 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,22 @@ import autoprefixer from "autoprefixer";
import tailwind from "tailwindcss";

export default defineConfig({
css: {
postcss: {
plugins: [tailwind(), autoprefixer()],
},
preprocessorOptions: {
scss: {
api: "modern-compiler",
},
},
},
plugins: [vue()],
build: {
rollupOptions: {
input: {
main: resolve(__dirname, "./index.html"),
console: resolve(__dirname, "./src/modules/console/index.html"),
recruitment: resolve(__dirname, "./src/modules/recruitment/index.html"),
},
},
},
resolve: {
alias: {
"@": resolve(__dirname, "./src"),
"@console": resolve(__dirname, "./src/modules/console"),
"@recruitment": resolve(__dirname, "./src/modules/recruitment"),
},
},
css: {
postcss: {
plugins: [tailwind(), autoprefixer()],
},
preprocessorOptions: {
scss: {
api: "modern-compiler",
},
},
},
plugins: [vue()],
resolve: {
alias: {
"@": resolve(__dirname, "./src"),
"@console": resolve(__dirname, "./src/modules/console"),
"@recruitment": resolve(__dirname, "./src/modules/recruitment"),
},
},
});

0 comments on commit 230ff0f

Please sign in to comment.