How To Use Import Maps with Rails

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 5

  • @blissofbeing
    @blissofbeing Месяц назад

    But, what about packages that also have dependencies but they are loaded as imports in the js file. They aren't loaded currently. Do you know of a fix for this?

  • @sacrac1
    @sacrac1 2 месяца назад +1

    @GoRails Do you know how to move webpacker into importmaps ?? including vendor/javascript/library.js, stimulus.js controller etc my project is in 7.0 because I migrate 6.x to 7.x i'm newbie in rails and new change is confuising. Any advice? tutoria step by step?

  • @bigboyshassen59
    @bigboyshassen59 2 месяца назад

    this is definitely the missing tutorial
    how would you load page specific js? or do you load it on each page and check that the html you want to manipulate in js exists on the page?

  • @mooktakim
    @mooktakim 2 месяца назад

    Is it better than using esbuild?

  • @stpaquet
    @stpaquet 2 месяца назад

    I stick to esbuild