Closed vaukalak closed 5 months ago
The recent changes enhance the CSS handling in the project by modifying how CSS modules are imported in HelloWorld.jsx
files and adjusting the yarn dependencies command to include the -D
flag. Additionally, the HelloWorld.module.css
file is now part of the base files copied by the generator. The CHANGELOG.md
reflects these updates alongside fixes for typos and grammar mistakes.
File Path | Change Summary |
---|---|
CHANGELOG.md |
Fixed css-loader installation (PR 1634) and addressed typos and grammar mistakes (PR 1631). |
lib/generators/react_on_rails/base_generator.rb |
Added HelloWorld.module.css to base_files and modified yarn command to include -D flag. |
...javascript/bundles/HelloWorld/components/HelloWorld.jsx |
Changed import statement for CSS module to import all exports as a namespace. |
...redux/base/app/javascript/bundles/HelloWorld/components/HelloWorld.jsx |
Changed import statement for CSS module to import all exports as a namespace. |
πΎ In code we weave a tale so grand,
CSS modules now at hand.
Importing styles in a brand new way,
Making bugs and typos sway.
With every push and PR made,
In React, our work displayed.
π¨ Teamwork's magic, changes bold,
In docs and scripts, the future told. π
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary
When setting up a new project, the default template uses css-loader. However it's not properly defined. This PR addresses the issue.
Pull Request checklist
Remove this line after checking all the items here. If the item is not applicable to the PR, both check it out and wrap it by
~
.Add the CHANGELOG entry at the top of the file.
Other Information
Remove this paragraph and mention any other important and relevant information such as benchmarks.
This change isβ
Summary by CodeRabbit
Bug Fixes
css-loader
installation issues.New Features