Questions tagged [cssbundling-rails]

12 questions
7
votes
4 answers

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). These are my default config files: application.js //…
Mr.Code
  • 195
  • 1
  • 5
3
votes
1 answer

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": "sass ./app/assets/stylesheets/application.scss…
dumbledad
  • 16,305
  • 23
  • 120
  • 273
2
votes
2 answers

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"; @import "dropzone/dist/min/dropzone.min.css"; @import…
Pseudo-Hippy
  • 177
  • 11
1
vote
1 answer

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 and configs from application (basically, I…
1
vote
0 answers

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 follows in my webpack.config.js: module: { …
1
vote
0 answers

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 Error: Can't find stylesheet to import. with sass compiler
Kevin
  • 65
  • 5
1
vote
1 answer

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 flies /layouts _index.scss ///other…
Chrismisballs
  • 167
  • 12
0
votes
0 answers

Can I install Bootstrap v4.6 with cssbundling-rails?

I have a Rails 6.1 app with the cssbundling-rails and jsbundling-rails apps. This is an upgraded app using the asset pipeline. I need to use bootstrap version 4.6, not latest bootstrap v5. But rails css:install:bootstrap installs v5. --UPDATE-- I…
rigyt
  • 2,219
  • 3
  • 28
  • 40
0
votes
0 answers

Rails cssbundling, TailwindCSS and Sass in production

Need I need both Sass and TailwindCSS to work in parallel for our project (Rails 7 deployed on Heroku). Current setup # Procfile release: rake db:migrate web: bundle exec puma -C config/puma.rb worker: bundle exec sidekiq -C config/sidekiq.yml css:…
Francois
  • 1,367
  • 1
  • 15
  • 23
0
votes
1 answer

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: the server responded witha status of 404" error in…
Gavin Esplin
  • 86
  • 1
  • 5
0
votes
1 answer

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 cssbundling-rails to compile my SASS and to output the…
rctneil
  • 7,016
  • 10
  • 40
  • 83
0
votes
0 answers

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. So far it's working really nicely and is a…
rctneil
  • 7,016
  • 10
  • 40
  • 83