You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For existing applications, Rails recommend the use of jsbundling-rails. There's a nice switching guide for users who wants to migrate from webpacker.
With JSBuilding we could use other bundlers such as esbuild that are a lot faster than webpack (see demo here), but it would require additional work.
Webpacker had a lot of builders bundled so the package.json file would grow a lot as it would need to include each required library used by webpacker.
Rails 7 uses importmap by default, but it's a big change as it no longer uses the whole Node/NPM ecosystem. It seems like a lot of work and Rails recommend it for new applications.
The last solution is to use the shakapacker gem which is a fork of the webpacker. The work would be "minimal" as it's basicaly webpacker, but it's not official so you never know for how long it would be maintained.
The text was updated successfully, but these errors were encountered:
With this migration will most likely come an upgrade of Sass, meaning that @import in sass files no longer works.
A review of all the CSS might be needed as sass variables are prefixed with a namespace.
Hello everyone,
With the release of Rails 7, the webpacker gem has been abandonned and is no longer maintained by the developpers.
There's three solutions and all of them are compatible with Rails 6.1 so it could be setted up before migrating to Rails 7, thus the migration would be "less" painful.
For existing applications, Rails recommend the use of jsbundling-rails. There's a nice switching guide for users who wants to migrate from webpacker.
With JSBuilding we could use other bundlers such as esbuild that are a lot faster than webpack (see demo here), but it would require additional work.
Webpacker had a lot of builders bundled so the package.json file would grow a lot as it would need to include each required library used by webpacker.
Rails 7 uses importmap by default, but it's a big change as it no longer uses the whole Node/NPM ecosystem. It seems like a lot of work and Rails recommend it for new applications.
The last solution is to use the shakapacker gem which is a fork of the webpacker. The work would be "minimal" as it's basicaly webpacker, but it's not official so you never know for how long it would be maintained.
The text was updated successfully, but these errors were encountered: