-
趁着元旦,roadhog 2.0 发布了,我们一起来看看有啥变化吧。
👏 👏 👏
**一、**
首先,我们把底层重写,基于 [af-webpack](https://github.com/umijs/umi/tree/master/packages/af-webpack)。
为啥要基于 af-webpack?**单看 roadhog,这意义不大,但如果有数个…
-
配置 webpack 其实很简单,基础的构建可以按照以下方式来配置 webpack:
- 想让源文件加入到构建流程中去被 webpack 控制,配置 `entry`。
- 想自定义输出文件的位置和名称,配置 `output`。
- 想自定义寻找依赖模块时的策略,配置 `resolve`。
- 想自定义解析和转换文件的策略,配置 `module`,通常是配置 `module.rules`…
-
Before I used webpack I was able to share some common libs with main code and the worker through a separate file that was loaded on both sides.
I see that CommonsChunkPlugin separate libs from app …
-
某个后台工程, 用了ts+regularjs+es6, webpack 打包非常耗时和耗内存.
首先使用DllPlugin替换commonChunkPlugin, 将一次打包分成连个独立的打包过程: 第三方库打包和业务逻辑打包. 这样做之后, 内存消耗和耗时有所降低.
对于DllPlugin和CommonChunkPlugin的区别, [Stack Overflow有一个解答](ht…
-
**Do you want to request a *feature* or report a *bug*?**
I request a godlike ***feature***
**What is the current behavior?**
[Here](https://stackoverflow.com/questions/47925569/dyn…
-
# 问题
最近用Vue2开发项目,一个项目建立了好几个代码仓库,本地开发不想通过npm包方式互相引用,这问题不大,在webpack配置文件中加一个`alias`即可:
```
resolve: {
extensions: ['.js', '.vue', '.json', '.css'],
alias: {
'vue$': 'vue…
-
I just discovered https://github.com/asfktz/autodll-webpack-plugin which is a higher level API aimed at simplifying their usage.
stof updated
2 months ago
-
## The devDependency [webpack](https://github.com/webpack/webpack) was updated from `4.24.0` to `4.25.0`.
🚨 [View failing branch](https://github.com/dderevjanik/agescx-js/compare/master...dderevjani…
-
-
Hello 👋
We're currently using relative-ci to track our bundle stats over time, but I've noticed that the modules that are externalised via the `DllReferencePlugin` are not included (which makes se…