platanus / potassium

A Rails application generator by Platanus, inspired by Suspenders
MIT License
232 stars 17 forks source link

Shakapack #395

Closed gmq closed 2 years ago

gmq commented 2 years ago

Webpacker is dead. Long live WebpackerShakapacker.

Since Shakapacker is a lighter wrapper of Webpack, it's our chance to update our stack.

Additionally it changes some things around to make them more compliant with our work process.

In an ideal world we'd change to Vite (it makes the integration with Vue and Typescript simpler and much faster) but ActiveAdmin's dependencies (jquery and jquery-ui) make it more complicated than it should.

gmq commented 2 years ago

Al final saqué los alias, estuvimos conversando con @difernandez y al final estando app/javascript como base, ya hay acceso a todo "cerca". La única excepción es app/assets (que siempre termina siendo una enorme lista de ../../) pero agregando la carpeta en webpacker.yml queda disponible para importar cosas directamente (require('images/logo.svg') si es que está en app/assets/images/logo.svg)