vuepress icon indicating copy to clipboard operation
vuepress copied to clipboard

Upgrade Webpack to v5

Open justforuse opened this issue 2 years ago • 4 comments

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

justforuse avatar Mar 07 '22 07:03 justforuse

VuePress 2 already supports webpack5

Mister-Hope avatar Jun 18 '22 07:06 Mister-Hope

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

nth-chile avatar May 15 '23 16:05 nth-chile

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 avatar Dec 18 '23 08:12 see2ever

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

see2ever avatar Dec 18 '23 10:12 see2ever