Skip to content

Commit 8c184a7

Browse files
authored
repo sync
2 parents 058f0c8 + 9332c62 commit 8c184a7

File tree

3 files changed

+85
-2
lines changed

3 files changed

+85
-2
lines changed

middleware/webpack.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
const webpack = require('webpack')
22
const middleware = require('webpack-dev-middleware')
33
const config = require('../webpack.config')
4+
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin')
45

56
const webpackCompiler = webpack({
67
...config,
7-
mode: 'development'
8+
mode: 'development',
9+
plugins: [
10+
...config.plugins,
11+
new FriendlyErrorsWebpackPlugin({
12+
clearConsole: false
13+
})
14+
]
815
})
916

1017
module.exports = middleware(webpackCompiler, {
11-
publicPath: config.output.publicPath
18+
publicPath: config.output.publicPath,
19+
logLevel: 'silent'
1220
})

package-lock.json

+74
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"eslint-plugin-node": "^11.1.0",
9999
"eslint-plugin-promise": "^4.2.1",
100100
"event-to-promise": "^0.8.0",
101+
"friendly-errors-webpack-plugin": "^1.7.0",
101102
"graphql": "^14.5.8",
102103
"heroku-client": "^3.1.0",
103104
"husky": "^4.2.1",

0 commit comments

Comments
 (0)