Why are dist/swagger-ui.js and dist/swagger-ui-bundle.js different after each "npm run build"?

11 views
Skip to first unread message

Josh Castaneda

unread,
Mar 13, 2018, 4:33:10 PM3/13/18
to Swagger
Simple question. Just wondering why when i run the same command multiple times in a row, changes are introduced to the dist folder. 

Kyle Shockey

unread,
Mar 13, 2018, 5:10:22 PM3/13/18
to Swagger
Hey Josh!

Swagger-UI bakes some data in `versions.swaggerUi` each time it is built (see below). This data includes a `buildTimestamp`, which declares the time the build started at.



Since this changes each time the build is made, your build artifacts will be different as well.

It's not currently possible to disable this, but we would be happy to see a PR that adds a flag for disabling it 😉
Reply all
Reply to author
Forward
0 new messages