title: Nuxt js How to import local js files from assets?
body: <p>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 &quot;/* script not found */&quot; .<br />
  i need to know what is the correct way to import local js scripts . <br/>
  below is the nuxt.config.js file . <br /></p>
  <pre class="lang-js prettyprint-override"><code>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'
      }
    ],
  },
  </code></pre>