Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Mar 14, 2024
1 parent 163cdcd commit 934fee7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
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

0 comments on commit 934fee7

Please sign in to comment.