I have explored multiple methods for importing the JS file, but I am still unable to locate it. Can anyone guide me on how to import a JS file from the assets folder to nuxt.config.js and have it accessible throughout the entire website?
nuxt.config.js
head: {
script: [
{
src: '~/assets/js/core.js',
},
{
src: 'js/core.js',
},
{
src: 'assets/js/core.js',
},
{
src: '~assets/js/core.js',
},
{
src: '@assets/js/core.js',
},
{
src: '@/assets/js/core.js',
},
{
src: '@assets/js/core.js',
},
]
}