Skip to content

Commit

Permalink
docs: discuss removing sprockets
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMassimo committed Dec 24, 2021
1 parent 715b3e7 commit 0e32530
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/guide/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,24 @@
[assets pipeline]: https://guides.rubyonrails.org/asset_pipeline.html
[glob expression]: https://github.com/ElMassimo/vite_ruby/blob/eeccd3fc4e7db9524a2bd1075ca1282f3f53c029/vite-plugin-ruby/example/config/vite.json#L9
[resolve.alias]: https://vitejs.dev/config/#resolve-alias
[sprockets]: https://github.com/rails/sprockets-rails
[sprockets example]: https://github.com/ElMassimo/vite_ruby/pull/165

# Migrating to Vite

If you would like to add a note about Sprockets, pull requests are welcome!
If you would like to add a note about other setups, pull requests are welcome!

## Starting Fresh ☀️

When starting a new project, follow the [guide], and you should have a [basic setup][sourceCodeDir]
where you can place your JavaScript, stylesheets, and other assets.

## Sprockets ⚙️

If you would like to remove sprockets and use Vite Ruby alone, you can [follow this example][sprockets example].

Have in mind that this is optional, as both approaches can coexist without issues.

## Webpacker 📦

When migrating from [Webpacker], start by following the [guide] to get a [basic setup][sourceCodeDir] working before proceeding to migrate existing code.
Expand Down

0 comments on commit 0e32530

Please sign in to comment.