You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to specify the filename for a production build of a vue.js project that uses webpack, so that the bundled js file is not dynamically named client.[hash].js, but helloworld.js.
I created the project using vue init
Currently it outputs the following:
index.html
client.c4113ffa.js
client.c4113ffa.js.map
I used the command: vue build src/main.js --prod
My webpack.config.js file is listed below. I added the a line near the end, expecting that it would output helloworld.js, but it had no effect. I saw an issue that I think address this issue, but I am unsure of how to take advantage of it ( #326 )
I apologize if I am posting this issue in the wrong place, perhaps it is an issue with UglifyJS?
You can already do this by modifying the webpack conf. There's nothing to be added on vue-cli end because this is something that can be customised in the template itself.
I want to specify the filename for a production build of a vue.js project that uses webpack, so that the bundled js file is not dynamically named client.[hash].js, but helloworld.js.
I created the project using vue init
Currently it outputs the following:
I used the command:
vue build src/main.js --prod
My webpack.config.js file is listed below. I added the a line near the end, expecting that it would output helloworld.js, but it had no effect. I saw an issue that I think address this issue, but I am unsure of how to take advantage of it ( #326 )
I apologize if I am posting this issue in the wrong place, perhaps it is an issue with UglifyJS?
The text was updated successfully, but these errors were encountered: