core icon indicating copy to clipboard operation
core copied to clipboard

[Bug report] plugin-vue-export-helper in vite breaks github pages and increase output size

Open Mister-Hope opened this issue 3 years ago • 2 comments

Description

In some projects, a single line chunk called _plugin-vue_export-helper.[hash].js will be extracted in production mode.

However this actually:

  • Increase size
  • Let project fail on github pages with default settings (as jekyll omit files starting with underscore by default)

We need to configure chunks generation like vitepress:

  • Outputing vue, vue-router and @vuepress/client to a chunk
  • Pack toll chunks like the one mention above in app.js or in another chunk

Reproduction

Not needed

Used Package Manager

npm

System Info

Not needed

Mister-Hope avatar Aug 29 '22 16:08 Mister-Hope

@Mister-Hope where should it be added though? I was about to ask that when you closed it.

kaosine avatar Sep 26 '22 06:09 kaosine

Add a empty file named .nojekyll in output folder.

See https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages#static-site-generators

P.S.: locked this by mistake

Mister-Hope avatar Sep 26 '22 06:09 Mister-Hope

I think this should be fixed by #1101 right?

meteorlxy avatar Oct 21 '22 16:10 meteorlxy

#1101 was reverted

azat-io avatar Nov 06 '22 23:11 azat-io