How to build without filenamehashing in VueCli
Asked Answered
C

1

5

I would like to build my app and export files without random numbers, like app.e48201ef.js but app.js.

My app is in a /app/ folder at the root of a Wordpress, and I'm including the js files one by one in a template, to act on a .

Problem is I'm really confused by webpack, vue.config.js, the fact that Webpack is now included with VueCLi3, and I get the files included in a index.html, which I don't use.

How can I set a static name for each file in order to keep my app updated in production ?

Thank you.

Comparable answered 13/10, 2018 at 2:0 Comment(0)
T
14

You should set filenameHashing: false in the vue.config.js, as suggested for exactly your case in the docs.

module.exports = {
  filenameHashing: false
}
Tattletale answered 13/10, 2018 at 3:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.