Skip to content
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

[Bug]: RsDoctor does not display the count of JS and CSS files in output #586

Open
dakiesse opened this issue Nov 7, 2024 · 1 comment · Fixed by #606
Open

[Bug]: RsDoctor does not display the count of JS and CSS files in output #586

dakiesse opened this issue Nov 7, 2024 · 1 comment · Fixed by #606
Assignees
Labels
🐞 bug Something isn't working

Comments

@dakiesse
Copy link

dakiesse commented Nov 7, 2024

Version

System:
OS: macOS 15.0.1
CPU: (8) arm64 Apple M1 Pro
Memory: 1.84 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Brave Browser: 128.1.69.168
Chrome: 130.0.6723.92
Safari: 18.0.1
Safari Technology Preview: 18.0
npmPackages:
@rsdoctor/rspack-plugin: ^0.4.8 => 0.4.8

Details

I came across that RsDoctor does not show the number of JS and CSS files, and brakes the stats with the following rspack config:

output: {
    filename: '[name].js?v=[contenthash]',
    chunkFilename: '[name].js?v=[contenthash]',
    ...,
},
plugins: [
    new rspack.CssExtractRspackPlugin({
        filename: '[name].css?v=[contenthash]',
        chunkFilename: 'styles.[name].css?v=[contenthash]',
    }),
    ...,
]

Result:
Image
Image

But if i use:

output: {
    filename: '[name].[contenthash].js',
    chunkFilename: '[name].[contenthash].js',
    ...,
},
plugins: [
    new rspack.CssExtractRspackPlugin({
        filename: '[name].[contenthash].css',
        chunkFilename: 'styles.[contenthash].[name].css',
    }),
    ...,
]

Result OK:
Image
Image

Reproduce link

.

Reproduce Steps

.

@dakiesse dakiesse added the 🐞 bug Something isn't working label Nov 7, 2024
@easy1090 easy1090 self-assigned this Nov 12, 2024
@easy1090
Copy link
Collaborator

Got this issue, I'll reappear this scene and solve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants