何从e何去

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2020年9月13日

摘要: webpack第三方包的安装和用法 1.husky的安装和用法用途:不符合eslint的规范,不能推送到git上安装:npm install husky -D用法:"precommit": npm run lint-fix 2.vue-server-renderer的安装和用法用途:服务端渲染必须使 阅读全文
posted @ 2020-09-13 18:58 何从e何去 阅读(297) 评论(0) 推荐(0) 编辑

2020年9月12日

摘要: vue-loader.config.js module.exports = (isDev) =>{ return { preserveWhitepace: true, // 删除vue文件的行尾空格 cssModules: { localIdentName: '[path]-[name]-[hash 阅读全文
posted @ 2020-09-12 22:31 何从e何去 阅读(203) 评论(0) 推荐(0) 编辑

摘要: 1.处理js语法及校验 @babel/core(核心包) @babel/preset-env转化高级语法) @babel/plugin-proposal-decoreators(转化es7语法) @babel/plugin-proposal-class-properties(处理class的语法) 阅读全文
posted @ 2020-09-12 19:44 何从e何去 阅读(220) 评论(0) 推荐(0) 编辑

2020年9月2日

摘要: ERROR in ./src/main.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: E:\webs\test\src\main.js: Cannot read property 阅读全文
posted @ 2020-09-02 18:15 何从e何去 阅读(945) 评论(0) 推荐(0) 编辑

摘要: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ReferenceError: document is not defined at insertStyleElement (E:\we 阅读全文
posted @ 2020-09-02 09:41 何从e何去 阅读(7013) 评论(0) 推荐(1) 编辑

2020年8月31日

摘要: “Missing semicolon.” : “缺少分号.”, “Use the function form of \”use strict\”.” : “使用标准化定义function.”, “Unexpected space after ‘-’.” : “在’-'后面不应出现空格.”, “Exp 阅读全文
posted @ 2020-08-31 07:48 何从e何去 阅读(467) 评论(0) 推荐(0) 编辑

摘要: 端口监听查看: ss -tln 查看TCP的listen的端口 ss -tlnp 查看哪些进程使用了监听端口 防火墙 systemctl status iptables (或service iptables status) 查看防火墙状态 systemctl stop iptables(或servi 阅读全文
posted @ 2020-08-31 07:26 何从e何去 阅读(146) 评论(0) 推荐(0) 编辑

摘要: 参考 使用ESLint+Prettier来统一前端代码风格 vscode 配置vue+vetur+eslint+prettier自动格式化功能 问题描述 最近用Nodejs + express 写了一个zip文件上传的功能,代码给了别人看,各种吐槽,代码不规范,没有按照eslint,编辑器打开就是各 阅读全文
posted @ 2020-08-31 07:25 何从e何去 阅读(7389) 评论(0) 推荐(0) 编辑

2020年8月29日

摘要: { "no-alert": 0, //禁止使用alert confirm prompt "no-array-constructor": 2, //禁止使用数组构造器 "no-bitwise": 0, //禁止使用按位运算符 "no-caller": 1, //禁止使用arguments.caller 阅读全文
posted @ 2020-08-29 22:53 何从e何去 阅读(341) 评论(0) 推荐(0) 编辑

摘要: 代码自动格式化settings.json文件配置{ // 是否允许自定义的snippet片段提示 // "editor.snippetSuggestions": "top", // vscode默认启用了根据文件类型自动设置tabsize的选项 "editor.detectIndentation": 阅读全文
posted @ 2020-08-29 22:10 何从e何去 阅读(1461) 评论(0) 推荐(0) 编辑