logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue打包出现警告:Conflict: Multiple assets emit different content to the same filename assets/js/.gz

出现警告的原因是因为我使用了compression-webpack-plugin压缩打包插件。打包之后命名都是空。找到问题定位filename:属性filename: '[path].gz[query]'。google最终找到原因是因为compression-webpack-plugin升级了"compression-webpack-plugin": "^6.1.1",这时候需要修改filenam

解决VSCode中使用vetur插件格式化vue文件时,代码会自动补填加上冒号和分号,在使用Eslint代码规范的时候编译警告

找到插件配置扩展设置找到 Vetur › Format › Default Formatter: JS将默认值 prettier修改为 vscode-typescript 即可

vue切换tab栏切换时,数据闪烁一下

<keep-alive><router-view></router-view></keep-alive>添加 <keep-alive>标签包裹路由显示区

vue-cli3创建项目运行报错`3 errors and 0 warnings potentially fixable with the `--fix` option.`

报错问题:因为创建项目中Eslint选择 standard 的话在创建vue项目中,会选择linter/Formatter,eslint-config-standard"standard"插件代表的是eslint的standard插件都要安装所以参考一下以下依赖是否安装eslintbabel-eslinteslint-plugin-htmleslint-config-standardeslint-

vue路由如何设置项目进入的默认初始页面

export default new Router({routes: [{path: '/',redirect: '/recommend'},]})

在 vue3 项目中出现 无法使用 JSX,除非提供了 “--jsx“ 标志 提示的解决办法

问题背景在 vue3 项目 <template/> 里面突然出现了:无法使用 JSX,除非提供了 “–jsx“。根据网上搜索到的办法1、是将的 typescript 版本设置为工作区相同的版本。2、就是在 settings.json 文件中添加:“typescript.sdk: …”。但是自己设置了也没有效果。最后适合自己的办法就是在 tsconfig.json文件中的compiler

#vscode
vue打包出现警告:Conflict: Multiple assets emit different content to the same filename assets/js/.gz

出现警告的原因是因为我使用了compression-webpack-plugin压缩打包插件。打包之后命名都是空。找到问题定位filename:属性filename: '[path].gz[query]'。google最终找到原因是因为compression-webpack-plugin升级了"compression-webpack-plugin": "^6.1.1",这时候需要修改filenam

vue3.0+vite 使用 postcss-pxtorem 实现移动自适应(px转rem)

下载 postcss-pxtoremnpm i postcss-pxtorem -D与package.json同级目录创建postcss.config.js文件module.exports = {plugins: {autoprefixer: {overrideBrowserslist: ["Android 4.1","iOS 7.1",.

vue-router4路由报“[Vue Router warn]: No match found for location with path“

这里出现该问题的原因:在路由配置了参数路径但是,跳转的路径没有参数:因此控制台出现了:

在 vue3 项目中出现 无法使用 JSX,除非提供了 “--jsx“ 标志 提示的解决办法

问题背景在 vue3 项目 <template/> 里面突然出现了:无法使用 JSX,除非提供了 “–jsx“。根据网上搜索到的办法1、是将的 typescript 版本设置为工作区相同的版本。2、就是在 settings.json 文件中添加:“typescript.sdk: …”。但是自己设置了也没有效果。最后适合自己的办法就是在 tsconfig.json文件中的compiler

#vscode
    共 24 条
  • 1
  • 2
  • 3
  • 请选择