yarn run build too slow
I use command 'yarn run build' to build the Vue project, but it take a long time about 20 min or more .I want to know what the reason is.Thank you so much!
You could try running with --verbose and see if the output helps narrow it down. It only takes 20s for me.
~/Projects 🐒 git clone [email protected]:vuejs/vue.git
Cloning into 'vue'...
remote: Counting objects: 50068, done.
remote: Total 50068 (delta 0), reused 0 (delta 0), pack-reused 50067
Receiving objects: 100% (50068/50068), 21.18 MiB | 2.14 MiB/s, done.
Resolving deltas: 100% (34788/34788), done.
~/Projects 🐒 cd vue
~/Projects/vue (dev) 🐒 yarn
yarn install v1.3.2
info No lockfile found.
[1/4] 🔍 Resolving packages...
warning [email protected]: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
warning codecov.io > request > [email protected]: Use uuid module instead
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning "webpack > [email protected]" has unmet peer dependency "ajv@>=4.10.0".
[4/4] 📃 Building fresh packages...
success Saved lockfile.
✨ Done in 43.76s.
~/Projects/vue (dev) 🐒 yarn run build
yarn run v1.3.2
$ node build/build.js
dist/vue.runtime.common.js 203.16kb
dist/vue.common.js 280.17kb
dist/vue.runtime.esm.js 203.15kb
dist/vue.esm.js 280.15kb
dist/vue.runtime.js 201.16kb
dist/vue.runtime.min.js 59.68kb (gzipped: 21.30kb)
dist/vue.js 277.43kb
dist/vue.min.js 84.19kb (gzipped: 30.60kb)
packages/vue-template-compiler/build.js 120.97kb
packages/vue-template-compiler/browser.js 204.27kb
packages/vue-server-renderer/build.js 224.45kb
packages/vue-server-renderer/basic.js 280.43kb
packages/vue-server-renderer/server-plugin.js 2.69kb
packages/vue-server-renderer/client-plugin.js 2.78kb
✨ Done in 19.08s.
All that yarn run build does is to set up some paths and run the script from package.json, which in Vue is: node build/build.js so if you try just running that command directly, you can see if that still takes a long time.
Closing this issue as there has been no followup in 3 days. This is unlikely a Yarn issue anyway, as it has to do with the Vue build script.
thank you so much,I will check it once again
I have same issue, weird