File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -920,9 +920,10 @@ Some key steps in the migration include:
920
920
4. Remove the `config.assets.paths << Rails.root.join(' app' , ' assets' )` line
921
921
from your `application.rb` file.
922
922
923
- 5. Migrate asset helpers by replacing all instances of asset helpers (e.g.,
924
- `image_url`) with standard URLs because Propshaft utilizes relative paths.
925
- For example, `image_url("logo.png")` will become `url("/logo.png")`.
923
+ 5. Migrate asset helpers by replacing all instances of asset helpers in your CSS
924
+ files (e.g., `image_url`) with standard `url()` functions, keeping in mind
925
+ that Propshaft utilizes relative paths.
926
+ For example, `image_url("logo.png")` may become `url("/logo.png")`.
926
927
927
928
6. If you' re relying on Sprockets for transpiling, you' ll need to switch to a
928
929
Node-based transpiler like Webpack, esbuild, or Vite. You can use the
You can’t perform that action at this time.
0 commit comments