geektime-webpack-course
geektime-webpack-course copied to clipboard
《玩转webpack》极客时间课程源码和课件
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. Commits a2c5da8 1.3.8 af5c6bb Do not use Object.create(null) 8b648a1 don't test where our devdeps don't even work c74c8af 1.3.7 024b8b5 update deps, add linting...
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. Commits a2c5da8 1.3.8 af5c6bb Do not use Object.create(null) 8b648a1 don't test where our devdeps don't even work c74c8af 1.3.7 024b8b5 update deps, add linting...
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. Commits a2c5da8 1.3.8 af5c6bb Do not use Object.create(null) 8b648a1 don't test where our devdeps don't even work c74c8af 1.3.7 024b8b5 update deps, add linting...
``` { test: /.css$/, use: [ MiniCssExtractPlugin.loader, 'css-loader', ], }, ``` 如老师以上代码, 当我想要加上sass的支持的时候, 我马上增加了如下匹配规则 ``` { test: /.s[ac]ss$/, use: [ MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader' ] }, ``` 但是在编译过程中, 发现`scss`后缀的文件会被匹配到`css`的规则上, 导致产生两次编译而报错, 错误如下...
Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.17.0 to 1.18.1. Changelog Sourced from http-proxy's changelog. v1.18.1 - 2020-05-17 Merged Skip sending the proxyReq event when the expect header is present [#1447](https://github.com/http-party/node-http-proxy/issues/1447) Remove node6 support,...
Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.17.0 to 1.18.1. Changelog Sourced from http-proxy's changelog. v1.18.1 - 2020-05-17 Merged Skip sending the proxyReq event when the expect header is present [#1447](https://github.com/http-party/node-http-proxy/issues/1447) Remove node6 support,...
请教老师一个问题,关于output中的publicPath,还有devServer中的publicPath和contentBase作用总是有点分不清,能否帮忙讲解一下~
>在专栏课程里,有位同学提到过一个很有意思的问题:“我没装 babel,js 入口里写了个箭头函数,运行 webpack 构建命令后,也成功编译了。这是为什么?”。今天就带领大家一起去探讨下这个话题。 在使用 webpack 的时候,很常见的一个构建优化手段就是**缩小构建目标**。比如在构建阶段只构建 src 里面的模块代码,对于 node_modules 里面所引入的三方包不进行构建操作。 # 发现问题 如果使用的是 webpack 3.x 版本,编写的构建脚本类似这样的,我们通过设置loader 里面的 exclude 字段避免由于解析 node_modules 里面的模块造成的构建耗时: ``` const path = require('path'); const webpack...