home/vite.config.js.timestamp-1668666668207.mjs

63 lines
4.7 KiB
JavaScript
Raw Normal View History

2022-11-17 14:36:06 +08:00
// vite.config.js
import {
defineConfig,
loadEnv
} from "file:///D:/Html/WorkSpace/Home/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/Html/WorkSpace/Home/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///D:/Html/WorkSpace/Home/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///D:/Html/WorkSpace/Home/node_modules/unplugin-vue-components/dist/vite.mjs";
import {
ElementPlusResolver
} from "file:///D:/Html/WorkSpace/Home/node_modules/unplugin-vue-components/dist/resolvers.mjs";
import {
createHtmlPlugin
} from "file:///D:/Html/WorkSpace/Home/node_modules/vite-plugin-html/dist/index.mjs";
import {
resolve
} from "path";
var __vite_injected_original_dirname = "D:\\Html\\WorkSpace\\Home";
var vite_config_default = ({
mode
}) => defineConfig({
plugins: [
vue(),
AutoImport({
resolvers: [ElementPlusResolver()]
}),
Components({
resolvers: [ElementPlusResolver()]
}),
createHtmlPlugin({
minify: true,
template: "index.html",
inject: {
data: {
title: loadEnv(mode, process.cwd()).VITE_SITE_NAME
}
}
})
],
server: {
port: "3000",
hmr: true
},
resolve: {
alias: [{
find: "@",
replacement: resolve(__vite_injected_original_dirname, "src")
}]
},
css: {
preprocessorOptions: {
scss: {
charset: false,
additionalData: `@import "./src/style/global.scss";`
}
}
}
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxIdG1sXFxcXFdvcmtTcGFjZVxcXFxIb21lXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJEOlxcXFxIdG1sXF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