Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asset_host with webpacker generated css and Rails 6 #265

Open
axlekb opened this issue Sep 20, 2019 · 0 comments
Open

asset_host with webpacker generated css and Rails 6 #265

axlekb opened this issue Sep 20, 2019 · 0 comments

Comments

@axlekb
Copy link

axlekb commented Sep 20, 2019

With Rails 6, I'm struggling getting "good-looking" (with css styles) HTML screenshots when running my specs without JS. Anyone solve this problem?

I run a bunch of specs without JS on because it they run faster but the default setting for webpacker in a test environment is to "inject" the CSS into the HTML. The injection does not happen if you're not running with JS.

You can change webpacker.yml to extract_css: true, and that allows you to generate the css file before running the suite, but I can't figure out why my development environment does not want to serve anything from public/packs-test when I load the html screenshot in a browser: Cannot GET /packs-test/css/application-d7079357.css

Anyone else have this use case?

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

No branches or pull requests

1 participant