# vue-demo **Repository Path**: qihaoqi/vue-demo ## Basic Information - **Project Name**: vue-demo - **Description**: vue-demo简单示例 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-03 - **Last Updated**: 2021-08-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-demo > A Vue.js project ## Build Setup ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # build for production and view the bundle analyzer report npm run build --report ``` For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). 安装全局vue-cli 1.npm install --global vue-cli 进入你的项目目录,创建一个基于 webpack 模板的新项目 2.vue init webpack vue-demo 如何用less写样式 3)安装less依赖:npm install less less-loader --save 4)编写less Module build failed: TypeError: this.getOptions is not a function at Object.lessLoader (E:\vueui\vue-demo\node_modules\less-loader\dist\index.js:19:24) 出现这个问题的原因是less-loader版本过高,降级到5.0.0即可 npm install less-loader@5.0.0 --save-dev