vuepress
vuepress copied to clipboard
Upgrade Webpack to v5
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
VuePress 2 already supports webpack5
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
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
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