Skip to content

Commit ca36095

Browse files
committed
docs: update attention part of README.md
1 parent 7f74a33 commit ca36095

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

README.md

+32-3
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,40 @@
1414

1515
- ### ⚡ Extreme Performance Optimize
1616

17-
- ### 📏 Fully Integrated to Coding Quality Tools
17+
- ### 📏 Fully Integrated Coding Quality Tools
1818

19-
### Attention
19+
## ⚠️ Attention
2020

21-
There are some constraints to using Webpack bundling your code, so it is not recommended by the NestJS creator, details [here](https://github.com/nestjs/nest/issues/1706#issuecomment-579248915). Therefore, please make sure your application does not contain native bindings library, then you can enjoy the above benefits
21+
Although there are advantages to using Webpack bundling your code (especially for serverless applications), there are some constraints, and details [here](https://github.com/nestjs/nest/issues/1706#issuecomment-579248915) (UPDATE: Both examples stated by the NestJS creator have already unblinded the native driver and are good to use now). Therefore, please make sure your application does not contain native bindings library, then you can enjoy the benefits.
22+
23+
### Extra Configuration for Dependency Packages
24+
25+
#### [Bull](https://docs.nestjs.com/techniques/queues)
26+
27+
You should install `copy-webpack-plugin` and copy bull default commands to the output directory when building the code.
28+
29+
```sh
30+
pnpm install -D copy-webpack-plugin
31+
```
32+
33+
```javascript
34+
// webpack.config.js;
35+
const CopyWebpackPlugin = require('copy-webpack-plugin');
36+
// ...
37+
module.exports = {
38+
plugins: [
39+
// ...
40+
new CopyWebpackPlugin({
41+
patterns: [
42+
{
43+
context: 'node_modules/bull/lib/commands',
44+
from: '**/*.lua',
45+
},
46+
],
47+
}),
48+
];
49+
}
50+
```
2251

2352
## 📓 Commands
2453

0 commit comments

Comments
 (0)