0👍
✅
Importing the assets
file is no different than importing any other JavaScript file from another src
directory:
import '@/assets/js/app'
It’s hard to say whether this usage is "right" without more context, but I don’t see anything wrong with doing that.
Source:stackexchange.com