kongfulu 252567a266 火焰粒子系统修改 | 10 months ago | |
---|---|---|
build | 1 year ago | |
config | 1 year ago | |
src | 10 months ago | |
static | 1 year ago | |
.babelrc | 1 year ago | |
.editorconfig | 1 year ago | |
.gitignore | 1 year ago | |
.postcssrc.js | 1 year ago | |
README.md | 1 year ago | |
index.html | 1 year ago | |
package-lock.json | 1 year ago | |
package.json | 1 year ago |
数字校园
# 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 and docs for vue-loader.
npm install less less-loader --save-dev
等待安装成功即可,接下里我们可以在vue项目中的package.json中看到less的相关依赖
接下来找到bulid目录下的webpack.base.conf.js并打开,找到module下的rules写下
{
test: /\.less$/,
loader: "style-loader!css-loader!less-loader"
}
将package.json 里面的内容修改成如下版本
"dependencies": {
"axios": "^0.19.2",
"echarts": "^4.8.0",
"element-ui": "^2.13.2",
"less": "^3.9",
"less-loader": "^5.0.0",
"devDependencies": {
"less": "^3.9",
"less-loader": "^5.0.0",