Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hash changed after build in prod mode in diffrent machine #1728

Closed
zhouxinyong opened this issue Jul 2, 2018 · 7 comments
Closed

hash changed after build in prod mode in diffrent machine #1728

zhouxinyong opened this issue Jul 2, 2018 · 7 comments
Labels
needs reproduction This issue is missing a minimal runnable reproduction, provided by the author scope: cli-service build

Comments

@zhouxinyong
Copy link
Contributor

Version

3.0.0-rc.3

Steps to reproduce

  1. npm i -g @vue/cli
  2. vue ui
  3. create a project
  4. run build in diffrent machine (one is ubuntu, the other is window)

What is expected?

the file hash is same after build in diffrent machine

What is actually happening?

the chunk-vendors hash is same in diffrent machine
but the app.js and app.css hash are not same!?

the below image show the build result in ubuntu:
_215

and there is the build result in windows:
_20180702111550

Is there any solution to fix this problem?

@zhouxinyong zhouxinyong changed the title hash changed in diffrent machine after build in prod mode hash changed after build in prod mode in diffrent machine Jul 2, 2018
@LinusBorg
Copy link
Member

can you run a diff on those files to see if/where content differs?

This might be hard for us to reproduce, so sharing the build result from both machines might help us.

@LinusBorg LinusBorg added the needs reproduction This issue is missing a minimal runnable reproduction, provided by the author label Jul 2, 2018
@Akryum
Copy link
Member

Akryum commented Jul 2, 2018

Also, maybe the line ending characters got changed between the two? (The components scoped CSS id takes into account the full content of the vue file.)

@zhouxinyong
Copy link
Contributor Author

@LinusBorg @Akryum this is my code link https://github.com/zhouxinyong/cli3-demo

my ubuntu and windows are both using node.js v10.5.0. files are same under src folders.
hash still diffrent after build in two machines

@zhouxinyong
Copy link
Contributor Author

Also, my application build task logs show the diffrent hash.(build in two compile machines,and then deploy to two servers)

one is:
_216

the other is:
_217

yyx990803 added a commit to vuejs/vue-loader that referenced this issue Jul 18, 2018
@yyx990803
Copy link
Member

Should be fixed by vuejs/vue-loader@0766fe7

It's not released yet, but you can try it by applying the change to your local node_modules.

@zhouxinyong
Copy link
Contributor Author

@yyx990803 I update vue-loader to 15.2.6, but the hash still change in diffrent machine.

@LinusBorg
Copy link
Member

Hm, that's weird. please open an another issue in the vue-loader repository. This one in the wrong repository so I won't re-open in here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction This issue is missing a minimal runnable reproduction, provided by the author scope: cli-service build
Projects
None yet
Development

No branches or pull requests

4 participants