Answer the question
In order to leave comments, you need to log in
How to make build with correct urls in vue-cli3?
After building the project, I would like to see static files in /static/dist/, for this I use baseUrl: "/static/dist/', in this case, when I go to the main page instead of the address 'localhost/' I get 'localhost/static/dist/ ' and all paths are built accordingly relative to this.my vue.config.js file
module.exports = {
baseUrl: '/static/dist/',
outputDir: '../api/static/dist/',
}
build: {
assetsPublicPath: '/',
assetsSubDirectory: 'static',
},
Answer the question
In order to leave comments, you need to log in
https://cli.vuejs.org/ru/config/#vue-config-js - everything is there
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question