自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 【node.js】DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead

node 服务启动之后,发现会报错 `DeprecationWarning: Tapable.plugin is deprecated. Use new API on '.hooks' instead`

2022-05-10 18:00:00 2956

原创 ESLint: Parsing error: Unexpected token(prettier/prettier)

ESLint 引入 prettier 后 html 文件报错 `Parsing error: Unexpected token(prettier/prettier)`

2022-05-06 20:00:00 3453 2

原创 Xshell 7 功能强大,免费享用,再也不用找破解版了

更新:从 2022/02/16 开始,我们的免费许可证的标签限制已被删除。所有免费用户现在都可以通过下载下面的最新版本来访问无限的标签。当前用户必须下载最新版本并在现有安装上进行安装。话不多说,上链接网址:地址填一个姓名,邮箱,即可下载。有三个选项,<两者>、xshell、xftp 。提交之后下载链接将发送到您的邮箱。亲测有效!!!下载链接,有效期至:2022-04-08xshell 7...

2022-03-09 13:58:41 3140 2

原创 eslint 报错:TypeError: token.type.endsWith is not a function

eslint 报错:TypeError: token.type.endsWith is not a function。解决方案:移除 `babel-eslint`,安装 `@babel/eslint-parser`

2022-02-17 08:00:00 1949

原创 @nuxtjs/device 无法判断设备是 iPad

问题: 在较新的 iPad (iPad9) 上面,使用 @nuxtjs/device 提供的 $device.isDesktop,返回 true。原因: iPad 默认开启了桌面模式,即会修改 userAgent ,来获取桌面版的网页。// 默认console.log(navigator.userAgent);// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Vers

2021-12-09 10:25:41 545

原创 Electron 打包 umi 项目,打开空白

问题: dev 环境使用 url 正常显示,打包后页面空白// devmainWindow.loadURL('http://localhost:8000/')// prodmainWindow.loadFile(path.resolve(__dirname, '../renderer', 'index.html'));原因: history 模式只能部署到 web 服务器使用,默认是 history解决: 路由使用 hash 模式// .umirc.tsexport default {

2021-12-08 16:02:47 924

原创 webpack 升级报错 webpack.NamedModulesPlugin is not a constructor

使用 [email protected] 的时候报错:TypeError: webpack.NamedModulesPlugin is not a constructor配置文件如下,webpack.config.js:const webpack = require('webpack');const { merge } = require('webpack-merge');const baseConfig = require('./webpack.config.base');module.expor

2021-10-14 09:22:45 6220 5

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除