11 questions
0
votes
0
answers
609
views
bin/dev doesn't load puma.rb
New Rails 7 application with css-bundling and bootstrap.
Now supposed to run bin/dev for dev server, using puma
It does not load my config/puma.rb
I commented out the line for the port in bin/dev, and ...
1
vote
1
answer
307
views
javascript_include_tag behavior after remove sprocket in rails 7
I started a fresh rails 7 application using jsbundling-rails (with esbuild) and cssbundling-rails (with bootstrap).
The pipeline works well to build assets. After testing that, I removed sprockets gem ...
3
votes
1
answer
677
views
How can I resolve "Error: Can't find stylesheet to import." for the uswds source styles (Ver 3.3.0)?
I'm using Rails 6.1.7 with jsbundling-rails and cssbundling-rails. I'm bundling with Webpack and Dart sass for js and css respectively. I've tried to follow the docs, and added the sass load paths as ...
0
votes
1
answer
336
views
Why won't my external css libraries be found in production with cssbundling-rails?
I have a few css libraries in my rails 7 app, like bootstrap & flatpicker. In development they both load fine, but in production only bootstrap is loading.
I get a "Failed to load resource: ...
0
votes
1
answer
98
views
Rails Asset Pipeline CSS different on remote than in development
I'm having a small issue where my compiled CSS on my deployed app is ever so slightly different to the compiled CSS locally in Development. Thankfully it's causing one minor problem.
I'm using ...
2
votes
1
answer
881
views
How to import vendored css from gem with cssbundling
Is it possible to import vendored css from gem with cssbundling ? If yes, how ?
For example :
Gemfile gem 'semantic-ui-sass'
application.scss @import "semantic-ui/collections/menu";
Gives me ...
2
votes
2
answers
2k
views
Node module css import paths work in development, but not in production
I am moving from Webpack to esbuild with jsbundling-rails & cssbundling-rails.
I have a folder which imports css libraries from vendors like so:
@import "drift-zoom/dist/drift-basic.min.css&...
1
vote
1
answer
962
views
Sass / Dartsass-rails Error: Can't find style sheet to import / Undefined mixin
Rails 7, dartsass-rails, cssbundling-rails, propshaft, importmaps
App structure
app/assets/stylesheets/
/components
_index.scss
///other flies
/global
_index.scss
_variables.scss
///other ...
9
votes
5
answers
17k
views
Custom CSS not working with CSS Bundling for Rails 7
Playing around with Rails 7 and I don't understand why my custom CSS is not working.
I built new rails app with flag for Bootstrap, which is working fine (CSS and JS, tested with bootstrap modal). ...
4
votes
1
answer
887
views
Sass built app/builds/application.css not making it into header
I am using the ruby Gem cssbundling-rails and dart-sass to process Sass in a Rails 7 app (and I am fairly new to Rails).
In the package.json file I define the build:css script:
"build:css": &...
1
vote
0
answers
337
views
CSS assets paths in 3rd party libraries when using jsbundling-rails
I'm in the process of updating my Rails app to version 7. As part of this, I've removed Webpacker and am trying to move my whole assets solution to the new jsbundling-rails and cssbundling-rails gems....