vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.49k stars 4.77k forks source link

Upgrade Webpack to v5 #3015

Open justforuse opened 2 years ago

justforuse commented 2 years ago

Feature request

What problem does this feature solve?

@vue/cli v5 has been published for a few days, and it support webpack@5.

The problem occurs when I use vuepress and vue at the same project

What does the proposed API look like?

How should this be implemented in your opinion?

Check whether the webpack v5 is compatible with current project

Are you willing to work on this yourself?

Yes

Mister-Hope commented 2 years ago

VuePress 2 already supports webpack5

nth-chile commented 1 year ago

My project doesn't allow me to use beta versions, so this is blocking us. When I add webpack 5 to my project, vuepress breaks. My question is, shouldn't vuepress have its own version of webpack? It specifies the version it wants, so why doesn't it use it? Why does npm i webpack break the vuepress build docs command

see2ever commented 9 months ago

indeed,and vuepress@next still has other problems, for example, in v2.0.0-rc.0,

docs said the SearchBox component is in default theme, but you could find nothing in the page and also the ts defined files, it means it didn't included

see2ever commented 9 months ago

cause I upgrade node from v16 to v18, so just fuck it!

yarn remove webpack && yarn add webpack@'^4' && NODE_OPTIONS=--openssl-legacy-provider vuepress build docs