I tried all the ways to import the JS file and when i tried to navigate the script from the view source code it gives error "/* script not found */" .
i need to know what is the correct way to import local js scripts .
below is the nuxt.config.js file .
head: {
title: 'admin',
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
],
script: [
{
type: 'text/javascript',
src: './assets/js/dashboard.js'
},
{
type: 'text/javascript',
src: '~/assets/plugins/charts-c3/plugin.js'
},
{
type: 'text/javascript',
src: '@/assets/plugins/maps-google/plugin.js'
},
{
type: 'text/javascript',
src: '/assets/plugins/input-mask/plugin.js'
}
],
},