04 2021 档案

摘要:{ "workbench.iconTheme": "vscode-icons", "explorer.confirmDragAndDrop": false, "explorer.confirmDelete": false, //配置eslint "editor.formatOnSave": true 阅读全文 »
posted @ 2021-04-28 17:15 玛卡巴鉲 阅读(81) 评论(0) 推荐(0) 编辑
摘要:AutomaticPrefetchPlugin会提前发现以前编译中的所有模块,同时监视更改,试图缩短增量构建时间。与PrefetchPlugin相比,PrefetchPlugin可以提前发现单个模块。 警告 由于增量构建时间非常快,因此可能有性能优势,也可能没有。 module.exports = 阅读全文 »
posted @ 2021-04-26 10:51 玛卡巴鉲 阅读(273) 评论(0) 推荐(0) 编辑
摘要:formatter: function (value) { let ret = "";// 拼接加\n返回的类目项 let maxLength = 4;// 每项显示文字个数 let valLength = value.length;// X轴类目项的文字个数 let rowN = Math.cei 阅读全文 »
posted @ 2021-04-21 09:56 玛卡巴鉲 阅读(508) 评论(0) 推荐(0) 编辑
摘要:方式一:stats对象 方式二:friendly-errors-webpack-plugin插件 npm i --save-D friendly-errors-webpack-plugin webpack.config.js plugins: [ new FriendlyErrorsWebpackP 阅读全文 »
posted @ 2021-04-09 16:35 玛卡巴鉲 阅读(200) 评论(0) 推荐(0) 编辑
摘要:一:module的引入方式 之前引用的方式: const CleanWebpackPlugin = require('clean-webpack-plugin'); new CleanWebpackPlugin(), 5 引用的方式 const { CleanWebpackPlugin } = re 阅读全文 »
posted @ 2021-04-09 15:12 玛卡巴鉲 阅读(104) 评论(0) 推荐(0) 编辑
摘要:工作之余,想自己配一把webpack。热更新卡了半天,直接上代码(标红部分是重点): webpack.config.js const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); c 阅读全文 »
posted @ 2021-04-09 14:03 玛卡巴鉲 阅读(1043) 评论(0) 推荐(0) 编辑
摘要:下面一些链接都是作者在遨游网站的时候收藏的,hahah。不间断更新~~ 字节跳动最爱考的 64 道算法题(JS版) 17K star 仓库,解决 90% 的大厂基础面试题 前端进阶之必会的JavaScript技巧总结 猛增 110K Star!年增长数最多的 10 大顶级前端学习资源项目! 面试大纲 阅读全文 »
posted @ 2021-04-06 15:08 玛卡巴鉲 阅读(188) 评论(0) 推荐(0) 编辑
摘要:Vuex状态机制,一刷新就会重置,解决问题的方式一般都是存储起来(session/local Storage),vuex-persistedstate插件帮我们集成了这些功能。 更多参数配置详情点击:npm,github npm install vuex-persistedstate --save 阅读全文 »
posted @ 2021-04-06 13:38 玛卡巴鉲 阅读(1399) 评论(4) 推荐(0) 编辑
摘要:npm:https://www.npmjs.com/package/vue-codemirror npm install vue-codemirror --save main.js import Vue from 'vue' import VueCodemirror from 'vue-codemi 阅读全文 »
posted @ 2021-04-06 13:25 玛卡巴鉲 阅读(1126) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示