Construction cordova + vue app

////////////////////////////////////////////////// / configuration path

In the vue.config.js

const path = require("path"); 

// vue.config.js
module.exports = {
  configureWebpack: config => {
    if (process.env.NODE_ENV === 'production') {
      // modify the configuration for the production environment ...
    } else {
      // development environment is configured to modify ... 
    return {
      Resolve {
        Alias: {
          "@js": path.resolve (_dirname, "./ the src / Assets / JS")
        }
      }
    }
} } }

  With time:

  

In the main.js
import "@js/store.js"

  

 

Guess you like

Origin www.cnblogs.com/bobofuns/p/12069824.html