Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

major: upgrade-webpack #1650

Draft
wants to merge 5 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
fixes
  • Loading branch information
elevatebart committed Mar 14, 2024
commit 934fee78f2cd7b9b7b15d4e1a14d2353cb0b6ff0
12 changes: 10 additions & 2 deletions packages/vue-styleguidist/src/scripts/create-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ export default function createServer(
{
devServer: {
compress: true,
hot: true
hot: true,
client: {
logging: 'none',
progress: true
}
}
},
{
Expand All @@ -26,7 +30,11 @@ export default function createServer(
? require(process.env.VSG_WEBPACK_PATH)
: webpackNormal

const compiler = webpack(webpackConfig)
const compiler = webpack({
...webpackConfig,
stats: 'errors-only',
infrastructureLogging: { level: 'error' }
})
const app = new WebpackDevServer(webpackDevServerConfig, compiler)

// User defined customizations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default function (
publicPath: config.styleguidePublicPath
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
...(webpack.version?.startsWith('4.') ? [new webpack.HotModuleReplacementPlugin()] : []),
new webpack.ProvidePlugin({
// Webpack 5 does no longer include a polyfill for this Node.js variable.
// https://webpack.js.org/migrate/5/#run-a-single-build-and-follow-advice
Expand Down