Does vue-cli have no build folder after creating the project?

after I created the project with vue-cli default configuration, I found that there is no build folder
may be a different version
create project command is vue create my-project
service life startup command has also been changed to npm run serve
what if I want to configure webpack ?
clipboard.png

May.07,2021

found. Create vue.config.js

in the root directory of the project.
// vue.config.js
const path = require('path');
function resolve (dir) {
    return path.join(__dirname, dir)
}
module.exports = {
    chainWebpack: config => {
        //
        config.resolve.alias
            .set('assets', resolve('src/assets'))
            .set('styles', resolve('src/assets/styles'))
    },

    // webpack-dev-server   
    devServer: {
        // 
        // port: 8989
    }
    //....
}
The

md document has instructions for you to take a look at


because you have used the new version of scaffolding, and the directory structure has changed a lot

.
Menu