自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 is a JavaScript file. Did you mean to enable the ‘allowJs‘ option? The file is in the program beca

error TS6504: File '/Users/mac/Desktop/eezi/eezi-epc/src/views/home/index.vue.jsx' is a JavaScript file. Did you mean to enable the 'allowJs' option?The file is in the program because: Root file specified for compilation

2022-10-20 17:38:17 6029

原创 react使用scss全局的变量

需要一个sass-resources-loader 的插件安装 npm install sass-resources-loader --save-dev修改config/webpack.config.js{ test: sassRegex, exclude: sassModuleRegex, use: getStyleLoaders( {

2020-09-11 17:10:54 964

原创 webpack yarn start 错误 this.htmlWebpackPlugin.getHooks is not a functio

webpack yarn start 错误 this.htmlWebpackPlugin.getHooks is not a functio删除node_modules目录,并重新npm install安装;安装与webpack4版本匹配的htmlWebpackPlugin;修改webpack配置文件new InterpolateHtmlPlugin(env.raw),修改为new InterpolateHtmlPlugin(HtmlWebpackPlugin, env.raw)

2020-09-11 09:38:07 1057

原创 fatal: remote origin already exists.报错

在上传本地代码到github仓库时,出现下面这个问题$ git remote add origin https://github.com/jennaqin/jennaqin.github.io.gitfatal: remote origin already exists.解决办法:先移除 git remote rm origin再次添加 git remote add origin https://github.com/jennaqin/jennaqin.github.io.git...

2020-07-16 09:34:25 103

原创 git 将代码提交到另一个新仓库

git push --mirror http://…(目标仓库地址)

2020-06-11 11:42:55 1049

原创 react的config暴露出项目配置文件

一般下载的新脚手架的项目根目录中没有config文件夹,首先暴露出项目配置文件,项目下执行:1. npm run eject2. yarn eject然后他会出现:项目下会多出两个文件夹,config和scripts,我们开发中一般只需关心config文件下的webpack.config.dev.js、webpack.config.prod.js、webpackDevServer.co...

2020-05-06 20:34:16 2796 1

原创 用forEach遍历对象

Object.keys(obj).forEach(function(key){console.log(key,obj[key]);});

2020-03-28 15:41:51 2930

原创 iview日期控件双向绑定日期格式的方法 不会提示错误

日期在双向绑定之后格式为:2019-07-03T16:00:00.000Z 想要的格式为2019-07-04以下代码即可:<DatePicker:key=“formValidate.expiredTime”format=“yyyy-MM-dd”@on-change=‘formValidate.expiredTime=$event’type=“datetime”placehold...

2020-03-28 15:26:00 368

原创 Path variable [contenthash] not implemented in this context: static/[name]/styles.[contenthash].css

打包时报错webPack 升级到 4.x导致extract-text-webpack-plugin 无法使用new ExtractTextPlugin({filename: [name]_[md5:contenthash:hex:8].css,}),

2020-03-06 16:33:59 3137

原创 vs Code设置水平参考线虚线

在设置中然后重新打开vscode

2020-03-04 14:16:54 3583 1

原创 Module build failed: Error: Cannot find module 'node-sass'错误

拉取代码后npm install 报错,Module build failed: Error: Cannot find module ‘node-sass’,找了各种方法都是安装不上,后来把node-sass卸载再重新安装就好了,先执行:npm uninstall node-sass再执行: npm install node-sassnpm run dev 就好了...

2020-02-29 18:33:55 924

原创 vue项目中配置favicon图标

在项目完结的时候打算把浏览器的导航小icon图标给替换了,可是并没有那么顺利,那么如何在vue中替换默认的icon(favicon.ico)的导航栏图标呢:1.开发环境配置2.生产环境配置注意:配置favicon图标的路径是相对路径!...

2020-02-28 15:08:06 561

空空如也

空空如也

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

TA关注的人

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