Skip to content

Delete empty files, that were generated by webpack style-only includes#1127

Merged
mauteri merged 4 commits intoGatherPress:developfrom
carstingaxion:fix/961
Jul 26, 2025
Merged

Delete empty files, that were generated by webpack style-only includes#1127
mauteri merged 4 commits intoGatherPress:developfrom
carstingaxion:fix/961

Conversation

@carstingaxion
Copy link
Copy Markdown
Collaborator

@carstingaxion carstingaxion commented Jul 25, 2025

Description of the Change

Closes #961

How to test the Change

Changelog Entry

Fixed - Do not distribute empty files anymore, that were generated by webpack style-only includes

Credits

Props @carstingaxion

Checklist:

  • I agree to follow this project's Code of Conduct.
  • All new and existing tests pass.

A Webpack plugin to remove empty JavaScript files generated when using style only entries.
A Webpack plugin to remove empty JavaScript files generated when using style only entries.
@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Jul 25, 2025

PR Summary

  • New Tool Integration
    A new tool called webpack-remove-empty-scripts has been added to the project. This tool will help our application run more smoothly by automatically getting rid of any unnecessary files that are generated during the building process of our app.

  • Configuration Updates
    Changes have been made to the project's build configuration file (webpack.config.js), to integrate the use of the newly added tool webpack-remove-empty-scripts.

  • Additional Requirement Added
    For supporting the functionality of webpack-remove-empty-scripts, another package named ansis, version 4.0.0-node10 has been added. This package is not a direct project requirement, but it is necessary for webpack-remove-empty-scripts to work properly.

@carstingaxion
Copy link
Copy Markdown
Collaborator Author

I haven't found any usage of profile_style.js and settings_style.js, so I accepted them missing.

Image

@carstingaxion carstingaxion changed the title Fix/961 Do not distribute empty files anymore, that were generated by webpack style-only includes Jul 25, 2025
@carstingaxion carstingaxion changed the title Do not distribute empty files anymore, that were generated by webpack style-only includes Delete empty files, that were generated by webpack style-only includes Jul 26, 2025
@mauteri mauteri merged commit 143fe32 into GatherPress:develop Jul 26, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not distribute empty file(s)

2 participants