Skip to content

Commit b0966cc

Browse files
Fix "build failed with 0 errors" issue
1 parent a9d3ccc commit b0966cc

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

build/webpack.dev.conf.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
4646
: false,
4747
publicPath: config.dev.assetsPublicPath,
4848
proxy: config.dev.proxyTable,
49-
quiet: true, // necessary for FriendlyErrorsPlugin
49+
quiet: false, // necessary for FriendlyErrorsPlugin
5050
watchOptions: {
5151
poll: config.dev.poll,
5252
}
@@ -98,17 +98,6 @@ module.exports = new Promise((resolve, reject) => {
9898
process.env.PORT = port
9999
// add port to devServer config
100100
devWebpackConfig.devServer.port = port
101-
102-
// Add FriendlyErrorsPlugin
103-
devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
104-
compilationSuccessInfo: {
105-
messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
106-
},
107-
onErrors: config.dev.notifyOnErrors
108-
? utils.createNotifierCallback()
109-
: undefined
110-
}))
111-
112101
resolve(devWebpackConfig)
113102
}
114103
})

config/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ module.exports = {
4040
// If true, eslint errors and warnings will also be shown in the error overlay
4141
// in the browser.
4242
showEslintErrorsInOverlay: false,
43-
43+
stats: {
44+
"errors": true,
45+
"warnings": true
46+
},
4447
/**
4548
* Source Maps
4649
*/

0 commit comments

Comments
 (0)