随笔分类 -  web

 
vue 项目使用 echarts
摘要:Echarts 官网:http://echarts.apache.org/zh/index.html 安装依赖 npm安装 npm install echarts -S 或者用淘宝镜像安装 npm install -g cnpm --registry=https://registry.npm.tao 阅读全文
posted @ 2021-10-27 18:47 汪成龙的博客 阅读(6637) 评论(0) 推荐(0)
vue 使用 gzip 压缩 js 等静态资源
摘要:添加 js 压缩组件 npm install compression-webpack-plugin@1.1.12 --save-dev 配置 vue.config.js // vue.config.js配置 const path = require('path') // gzip压缩插件 const 阅读全文
posted @ 2021-10-11 13:22 汪成龙的博客 阅读(1474) 评论(0) 推荐(0)
Syntax Error:<template>^ File to import not found or unreadable: ./src/assets/css/variables.scss.
摘要:错误描述 启动项目时报错:File to import not found or unreadable: ./src/assets/css/variables.scss. 报错原因 需要在配置文件中指定 variables.scss 的位置。 解决方案 调整 sass 版本 "node-sass": 阅读全文
posted @ 2021-10-03 20:01 汪成龙的博客 阅读(2297) 评论(0) 推荐(1)
Syntax Error: ValidationError: Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
摘要:错误描述 使用 scss 样式后,项目启动时报错: Syntax Error: ValidationError: Invalid options object. Sass Loader has been initialized using an options object that does no 阅读全文
posted @ 2021-10-03 19:52 汪成龙的博客 阅读(9622) 评论(0) 推荐(0)
Vue 常用包
摘要:Vue 基础库 vue Vue(读作/vjuː/,类似于 view)是一个用于构建用户界面的渐进式框架。它从头开始设计为可逐步采用,并且可以根据不同的用例在库和框架之间轻松扩展。它由一个仅关注视图层的易于使用的核心库和一个支持库生态系统组成,可帮助您解决大型单页应用程序中的复杂性。 vuex Vue 阅读全文
posted @ 2021-10-03 14:26 汪成龙的博客 阅读(458) 评论(0) 推荐(0)
Vue3 环境搭建
摘要:概述 Vue 使用 Node.js 作为运行时环境,使用 npm 进行包管理。 Linux 安装 Node.js 在 linux 中安装 Node.js ,请参见下面的文档: https://github.com/nodesource/distributions/blob/master/README 阅读全文
posted @ 2021-08-28 15:41 汪成龙的博客 阅读(873) 评论(0) 推荐(0)
angular error More than one module matches. Use the skip-import option to skip importing the component into the closest module or use the module option to specify a module.
摘要:angular 创建 model 的时候,报错: >ng g ng-zorro-antd:form-normal-login loginMore than one module matches. Use the skip-import option to skip importing the com 阅读全文
posted @ 2021-02-19 10:54 汪成龙的博客 阅读(918) 评论(0) 推荐(0)
vue Failed to compile - by node-sass
摘要:页面错误提示 Failed to compile../src/assets/css/element-variables.scss (./node_modules/_css-loader@3.6.0@css-loader/dist/cjs.js??ref--8-oneOf-3-1!./node_mod 阅读全文
posted @ 2021-01-28 19:01 汪成龙的博客 阅读(3560) 评论(0) 推荐(0)
npm 包管理器
摘要:重新安装依赖包 1、删除文件夹:node_modules 2、删除文件:package-lock.json 3、清除缓存:npm cache clear --force 4、重新安装:npm install 设置淘宝镜像源 # 查看镜像源地址 npm config get registry # 设置 阅读全文
posted @ 2020-10-12 19:42 汪成龙的博客 阅读(191) 评论(0) 推荐(0)
angular http 跨域访问
摘要:1、在跟目录中创建配置文件:proxy.config.json ,文件内容如下: { "/api": { "target": "http://192.168.0.200:10091", "secure": false, "pathRewrite": { "^/api": "" } } } 2、修改 阅读全文
posted @ 2020-10-12 16:10 汪成龙的博客 阅读(483) 评论(0) 推荐(0)