[Vuejs]-VueJS/Vue CLI – How to add a separate config for build

0👍

Add this:

  publicPath: process.env.NODE_ENV === 'production'
    ? '/prodPath'
    : '/devPath'

and create a .env file on your directory with the declared var set to the current enivorment state:
NODE_ENV='development'

Leave a comment