Skip to content

Commit 34ebdf9

Browse files
authored
Merge pull request rails#54287 from borama/patch-2
Refine a step in the Sprockets to Propshaft migration guide
2 parents abb7035 + 338100e commit 34ebdf9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

guides/source/asset_pipeline.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -920,9 +920,10 @@ Some key steps in the migration include:
920920
4. Remove the `config.assets.paths << Rails.root.join('app', 'assets')` line
921921
from your `application.rb` file.
922922
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")`.
926927
927928
6. If you're relying on Sprockets for transpiling, you'll need to switch to a
928929
Node-based transpiler like Webpack, esbuild, or Vite. You can use the

0 commit comments

Comments
 (0)