# vue-project **Repository Path**: null_669_7382/vue-project ## Basic Information - **Project Name**: vue-project - **Description**: 使用Vue2的商城学习项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-16 - **Last Updated**: 2023-11-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-project This template should help get you started developing with Vue 3 in Vite. ## Recommended IDE Setup [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). ## Customize configuration See [Vite Configuration Reference](https://vitejs.dev/config/). ## Project Setup ```sh npm install ``` ### Compile and Hot-Reload for Development ```sh npm run dev ``` ### Compile and Minify for Production ```sh npm run build ``` ### 基本结构 public: 静态资源,webpack打包时,不会被处理,而是原封不动打进dist文件夹(默认dist/stiatic/)。在js中使用的话,路径要经过webpack中的file-loader编译,路径不能直接写。 src: App.vue: 唯一的根组件 main.js: 程序入口文件,也是整个程序中最先执行的文件 assets: 一般放多个组件公用的静态资源,webpack会将其当做一个模块打包进JS文件中。必须使用绝对路径来引用这些文件。 components: 一般放非路由的组件 router: 一般放路由 views: