Packaged in vue2 + webpack3 production environment and packaged in ubantu16 environment, the password input box is changed to plaintext input, while packaging in windows is normal.

problem description
vue2 + webpack3 production environment packaging, in ubantu16 environment packaging, password input box into plaintext input; windows packaging is normal. I lost my type= "password" by force

this is the result of packaging in linux environment
clipboard.png
webpackjs
clipboard.png

window
clipboard.png
webpackjs
clipboard.png
at first I thought it was the problem of webpack packaging, so I lost type. Later, I compared the files on both sides, and it seems to be correct.
compilation environment:

node 8.9.0

Server

nginx/1.8.1  

I really don"t understand what went wrong, so I came to ask my colleagues for help!


1. Create a new folder in the ubuntu system, then pull down the code, compile and package normal (company test server);
2. Execute the packaging command on the background colleague's computer (ubuntu16.0.4), and there is no problem.
so the preliminary conclusion is that there is a problem with the company's test server!
so the temporary solution is to change the packaged folder

Menu