title: Extending global mixin in Nuxtjs
body: <p>I'm on Nuxtjs 2.15.7 and I have a mixin file like this:</p>
  <p>utils.js :</p>
  <pre class="lang-js prettyprint-override"><code>import Vue from &quot;vue&quot;
  
  if (!Vue.__utils__) {
    Vue.__utils__ = true
    Vue.mixin({ 
      data(){
        return{
           ...
        }
      },
      methods:{
        ...
      }
    })
  }
  </code></pre>
  <p>I want to create another global mixin that extend my utils.js, for example:</p>
  <p>utils-another.js :</p>
  <pre class="lang-js prettyprint-override"><code>import utils from '@/plugins/mixins/utils.js'
  import Vue from &quot;vue&quot;
  
  if (!Vue.__utils__) {
    Vue.__utils__ = true
    Vue.mixin({ 
      // ... utils.js codes
      data(){
        return{
           ...
        }
      },
      methods:{
        ...
      }
    })
  }
  </code></pre>
  <p>based on some env property i decide to use <code>utils.js</code> or <code>utils-another.js</code> . so how can I do that? I don't want to copy all utils.js codes to utils-another.js , that makes it hard for maintenance.</p>