hlj-scripts-test v1.0.85
注意的点
babel plugin 数组的顺序,transform-decorators-legacy 需要在 transform-class-properties 前面 doc
hlj-scripts 包中如果需要包含 react, mobx 等依赖,则需要装在 dependencies 下, 这样其他项目装 hlj-scripts 时才会自动装 react, mobx 等
By default, npm install will install all modules listed as dependencies in package.json
通过 node api 使用 webpack-dev-server 时,需要在 entry 中加上 webpack-dev-server/client?http://localhost:port 代码才会自动 reload
更好的方式是使用 addDevServerEntrypoints 方法,注意,使用该方法时必须提供 host 参数
async 和 arrow function 一起用时,报 this is not defined,这是 babel 的一个 bug,在 babel7 会被修复。
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago