In my project, we are using CI to automatically build EJS and deploy.
One day, my team staff noticed that there were many differences that were not expected in builded HTML files.
The reason of that cause was a difference in the attribute order of the img elements.
The img element was written purely statically, with no variables or functions.
I understand that if you trust the source files, you shouldn't have to worry about differences in build results, but I want to explain the reason to my team..
In my project, we are using CI to automatically build EJS and deploy.
One day, my team staff noticed that there were many differences that were not expected in builded HTML files. The reason of that cause was a difference in the attribute order of the
img
elements.Why these differences?
↓
We use
npm ci
with package-lock.json.thank you
img
element was written purely statically, with no variables or functions.