Comments (3)
Somebody just pointed out to me there's mention of this in the jsbundling readme: https://github.com/rails/jsbundling-rails#why-does-esbuild-overwrite-my-applicationcss
Feels like this should be solved, not be a footnote in the documention.
from cssbundling-rails.
Yes. I spent way too much time trying to figure out what was going on. I didn't see the mention of it in the readme until after I figured out what was going on.
from cssbundling-rails.
Feel free to explore an alternative. Problem is in part that the default Rails setup will refer to application.css in the head. So that needs to change. Based on whether you're using esbuild + postcss or just the latter alone. Need something seamless. Anyway, closing as this has been documented (even if the documentation can be missed). Do open a PR if you find a good path that handles all the concerns.
from cssbundling-rails.
Related Issues (20)
- set-script has been removed from npm 9 HOT 1
- Compilation step not copying over built css to public/assets folder HOT 4
- Error: The linux-x64 architecture is incompatible with this module, link skipped. HOT 1
- tailwind fails if you leave the `.html` format off of your tailwind fails if you leave the .html format off of your app/views/ filenames filenames HOT 5
- why does `rails new Xyz --css=bootstrap --js=esbuild` not produce working (JS) bootstrap? HOT 5
- Sprockets error when using additional CSS files HOT 1
- Using images inside node_modules HOT 4
- Rails 5 + ruby 2.5 support HOT 1
- Deprecation warning HOT 1
- Propshaft unable to find assets installed via yarn HOT 2
- Regression: Rake task methods override each other HOT 1
- Generating a Rails 7.1.0.beta1 app with bootstrap throws an error HOT 2
- Incorrectly escaped script command
- Possible issue with escaping string at lib/install/bootstrap/install.rb HOT 6
- Allow npm instead of yarn HOT 1
- Surprised by Bun default on new Rails project HOT 1
- How can I handle multiple "root" scss files? HOT 2
- Watch Command w/ Bootstrap Fails to Pick Up Changes HOT 1
- bin/dev file collision, could it be prevented ? HOT 2
- How to remove a framework installation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cssbundling-rails.