////////////////////////////////////////////////// / 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"