[Vuejs]-How can I import a JS file from a folder in my Vue JS project?

0👍

Yes it can be done. Simply do:

import 'path/to/winelist';

in the script section of your vue file

0👍

Use @ prefix to point to root folder then you can go anywhere.

import '@/path/to/you/file'

Leave a comment