import fileURLToPath URL from nodeurlimport defineConfig from viteimport vue from vitejsplugin-vueimport Components from unplugin-vue-componentsviteimport VantResolver from unplugin-vue-componen
This is a Vite configuration file. It is used to configure the build process for a Vite project.
Here are some key points about this configuration:
-
The
serverconfiguration is used to specify the port and host for the development server. In this case, the port is set to 80 and the host is set totrue, which means it will listen on all available network interfaces. -
The
pluginsarray includes various plugins that are used in the build process. Thevue()plugin enables Vue.js support in Vite. TheComponentsplugin is used to automatically import and register Vue components. ThecreateSvgIconsPluginplugin is used to import SVG icons and generate Vue components for them. -
The
resolveconfiguration is used to define aliases for import paths. In this case, the@alias is set to thesrcdirectory.
Overall, this configuration file sets up the development server, configures plugins for Vue.js and SVG icons, and defines aliases for import paths
原文地址: https://www.cveoy.top/t/topic/iTmc 著作权归作者所有。请勿转载和采集!