3

VueCli3 automatically add app.js in index.html. I want to rename that app.js file some other name. Is it possible to do that ?

1 Answer 1

2

Just create a file called vue.config.js in your project root directory and, in the configureWebpack property, you can set the name for the output js file.

vue.config.js

module.exports = {

    configureWebpack: {

        output: {

            filename: "appname.js"

        },

    },

}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.