Comments (4)
We fixed this in #15. You can get it now by using:
gem "propshaft", github: "rails/propshaft", branch: "main"
You probably made a mistake in the path to one of your assets. The PR will tell you which asset is the problem.
from propshaft.
Yeah that was the problem. I was using the wrong path in the url() (including the sub folder 'fonts').
Using branch: 'main' almost solved my problem, but I keep having problems with fontawesome css:
src: url('#{$fa-font-path}/fa-regular-400.eot?#iefix') format('embedded-opentype'),
url('#{$fa-font-path}/fa-regular-400.woff2') format('woff2'),
url('#{$fa-font-path}/fa-regular-400.woff') format('woff'),
url('#{$fa-font-path}/fa-regular-400.ttf') format('truetype'),
url('#{$fa-font-path}/fa-regular-400.svg#fontawesome') format('svg');
Propshaft::MissingAssetError (The asset 'fa/fa-solid-900.eot?#iefix' was not found in the load path.)
Propshaft::MissingAssetError (The asset 'fa/fa-solid-900.svg#fontawesome' was not found in the load path.)
I was able to bypass the problem by editing manually the css inside node_modules
, and removing the offending hashtags, but that is not a suitable solution to the underlying problem
from propshaft.
Ah yes. The second case (svg masks) was intentionally left out. It complicated the implementation of the css compiler and made it slower. I had never seem the first case.
If the css compiler were to simply remove #iefix
and #fontawesome
would those two still work?
from propshaft.
If the css compiler were to simply remove #iefix and #fontawesome would those two still work?
AFAIK, they should work, but I dont't use IE nor Fontawesome with JS (wich requires SVG), so I can't say for sure. In my usecase, that change solves my problem, but YMMV
from propshaft.
Related Issues (20)
- Asset digest is computed before compilation HOT 7
- Not able to detect changes in the assets HOT 1
- Raising an error when an asset is not found HOT 4
- config.asset_host as a proc breaks asset paths HOT 1
- quiet_assets initializer breaks when using a custom Rails logger HOT 2
- Using images inside node_modules HOT 3
- Newly added files that are already digested aren't available in development HOT 4
- `assets:clean` task is not cleaning predigested assets with `.digest` in the name HOT 7
- Allow digested files with the same name prefix
- Upgrade doc refers to 'packages.json' HOT 1
- Current version v0.7.0 contains the broken #118 asset_host handling HOT 1
- Revisit Gzip compression support? HOT 15
- SCSS files digested by default HOT 1
- allow a configurable digest length HOT 11
- Using Propshaft::Asset#content with UTF-8 encoding HOT 5
- Add single files to assets compilation HOT 2
- Digests required in dev? HOT 4
- missing require rack/version causing issues with sidekiq HOT 3
- CSS Variable Images HOT 3
- Builds folder not appearing in asset load path causing 'home.css' asset not found error HOT 3
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 propshaft.