assets/js/folder. That system is based on Build Tool Boilerplate by Chris Ferdinandi, but we extended it further to work also on Windows and to support JS import modules as Parcel for example does it.
assets/js/readme.mdfile. Although it can do more than just JS, we didn't want to strip other options.
npm installto instal all dependencies
npm run jsto build and compile JS
npm run watch-jsto watch for JS changes
assets/js/src/js/main.jsfile, it is the main file in which you import all others. You can of course add new subfolders there and import additional JS libraries you need.
#swup(page content + footer),
#mobile-menu. You will see that navbar stays still while page content changes.
target="_blank". And that's fine.
[data-no-swup]attribute to the link. For example:
[data-no-swup]attribute to the link whenever you want that link to exclude from the transition process.