@rsdoctor/webpack-plugin 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -29
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,33 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @rsdoctor/webpack-plugin
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## features
|
|
6
|
-
|
|
7
|
-
- Rsdoctor is a one-stop tool for diagnosing and analyzing the build process and build artifacts.
|
|
8
|
-
- Rsdoctor is a tool that supports Webpack and Rspack build analysis.
|
|
9
|
-
- Rsdoctor is an analysis tool that can display the time-consuming and behavioral details of the compilation.
|
|
10
|
-
- Rsdoctor is a tool that provides bundle Diff and other anti-degradation capabilities simultaneously.
|
|
11
|
-
|
|
12
|
-
## Note
|
|
13
|
-
|
|
14
|
-
This plugin is used by the `Webpack` repo to open Rsdoctor, [Quick Start](https://rsdoctor.dev/guide/start/quick-start).
|
|
15
|
-
|
|
16
|
-
Initialize the RsdoctorWebpackPlugin plugin in the [plugins](https://webpack.js.org/configuration/plugins/#plugins) section of the `webpack.config.js` file, as shown below:
|
|
17
|
-
|
|
18
|
-
```js title="webpack.config.js"
|
|
19
|
-
const { RsdoctorWebpackPlugin } = require('@rsdoctor/webpack-plugin');
|
|
20
|
-
|
|
21
|
-
module.exports = {
|
|
22
|
-
// ...
|
|
23
|
-
plugins: [
|
|
24
|
-
process.env.RSDOCTOR &&
|
|
25
|
-
new RsdoctorWebpackPlugin({
|
|
26
|
-
// options
|
|
27
|
-
}),
|
|
28
|
-
].filter(Boolean),
|
|
29
|
-
};
|
|
30
|
-
```
|
|
3
|
+
A webpack plugin for integrating Rsdoctor.
|
|
31
4
|
|
|
32
5
|
## Documentation
|
|
33
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/webpack-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"fs-extra": "^11.1.1",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
|
-
"@rsdoctor/graph": "1.0.
|
|
19
|
-
"@rsdoctor/core": "1.0.
|
|
20
|
-
"@rsdoctor/sdk": "1.0.
|
|
21
|
-
"@rsdoctor/utils": "1.0.
|
|
22
|
-
"@rsdoctor/types": "1.0.
|
|
18
|
+
"@rsdoctor/graph": "1.0.1",
|
|
19
|
+
"@rsdoctor/core": "1.0.1",
|
|
20
|
+
"@rsdoctor/sdk": "1.0.1",
|
|
21
|
+
"@rsdoctor/utils": "1.0.1",
|
|
22
|
+
"@rsdoctor/types": "1.0.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/fs-extra": "^11.0.4",
|