No Description

kongfulu 252567a266 火焰粒子系统修改 10 months ago
build c9275dd4fc 初始化 1 year ago
config c9275dd4fc 初始化 1 year ago
src 252567a266 火焰粒子系统修改 10 months ago
static 256af43cb2 1.解决模型卡顿问题以及模型渲染问题 1 year ago
.babelrc c9275dd4fc 初始化 1 year ago
.editorconfig c9275dd4fc 初始化 1 year ago
.gitignore c9275dd4fc 初始化 1 year ago
.postcssrc.js c9275dd4fc 初始化 1 year ago
README.md c9275dd4fc 初始化 1 year ago
index.html c9275dd4fc 初始化 1 year ago
package-lock.json c9275dd4fc 初始化 1 year ago
package.json c9275dd4fc 初始化 1 year ago

README.md

uninphoschool

数字校园

Build Setup

# 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.

项目中遇到的问题


1.支持less
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"
}
2.less还是不行 因为版本过高
将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",