-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Custom export behaviour for Gitlab pages #157
Comments
Good idea! I'll include this in the plan. |
Thank you for the fast action on this request. Really appreciate it! |
@easy1090 any rough idea when this will be implemented? |
@YanPes At present, in May, the high-priority requirement of Rsdoctor is to improve the efficiency of build analysis on webpack or rspack, but the ability of custom report will be realized in June or July. Currently, the data of Rsdoctor is too large, which may cause the page to crash, so a streamlined page export is required for the custom report. In June, the ability of the Rsdoctor plugin system will be provided. During the construction process, users can obtain and operate the Rsdoctor analysis data by themselves: // xxx.config.js
new RsdoctorWebpackPlugin({
extends: [RsdoctorCustomPlugin]
})
// rsdoctorCustomPlugin.ts
import { definePlugin } from '@rsdoctor/utils'
const RsdoctorCustomPlugin = definePlugin(() => ({
handle(data) {
// .. do something with the data context, the data includes rsdoctor's all analysis data.
},
})); |
@easy1090 Thank you for the insights on the current development! I will check out the custom plugin approach. Appreciate your efforts! 🥳 |
You can use rsdoctor's brief mode, @rsdoctor/* > 0.4.0, https://rsdoctor.dev/guide/start/cicd |
What problem does this feature solve?
As a customer I want to publish the Rsdoctor report on a Gitlab Pages page or a custom hosting solution to be able to access the generated reports from outside. This will help customers monitor the running applications without the need of a local running system.
Acceptance:
What does the proposed API look like?
New plugin option:
Generated static files for usage:
// my-repository-path/dist/rsdoctor/index.html
// my-repository-path/dist/rsdoctor/main.css
// my-repository-path/dist/rsdoctor/main.js
Tasks
The text was updated successfully, but these errors were encountered: