[Vuejs]-How to include a (compiled) JS file in NuxtJS

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.

Leave a comment