![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
webpack
haoyanyu_
这个作者很懒,什么都没留下…
展开
-
Sass报错: Using / for division is deprecated
: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.Recommendation: math.div($px, $screenWidth)More info and automated migrator: https://sass-lang.com/d/slash-div原创 2021-08-30 15:51:31 · 6049 阅读 · 0 评论 -
vue-cli3搭建的项目遇到Syntax Error: **/path/:Missing class properties transform.
事情经过是这个样子的:????有一天下午,天气晴朗,肚子有点饿,但是还不到下班时间,没心思敲业务代码了,于是灵机一动,在vue-cli3搭建的项目里动手实现一个event bus类吧。于是一顿猛敲class EventBus { constructor() { this._events = this._events ?? new Map(); } // 触发事件 fire = (event, ...args) => { // ... } // 添加事件监听原创 2020-08-03 17:46:27 · 2449 阅读 · 1 评论 -
make命令的简单用法
最近发现公司已有项目中有个Makefile文件,构建项目用的。以前好像在Linux系统里见到过下面就通过项目里makefile文件的配置内容学习记录一下make是怎么用的。make基本规则语法# 定义规则target: prerequisities[tab] commands# 执行make targettarget: 要生成的文件名或伪目标(只要target在当前目录下不存在,就会构建,否则执行命令也不会有任何反应)prerequisite: 前置条件(重新构建的判断依据,只要这两原创 2020-05-11 18:36:13 · 1613 阅读 · 0 评论 -
Compression Plugin Invalid Options options should NOT have additional properties
webpack打包时想要压缩js和css文件, 按照以前的项目拷贝了如下配置new CompressionWebpackPlugin({ asset: '[path].gz[query]', algorithm: 'gzip', test: new RegExp( '\\.(js|css)$' ), threshold:...原创 2019-08-26 13:59:39 · 1810 阅读 · 1 评论