1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

clear console on each webpack build

This commit is contained in:
nkzawa 2016-12-02 14:33:39 +09:00
parent 8a2981746b
commit e0fb04d685

View file

@ -70,7 +70,10 @@ export default async function createCompiler (dir, { hotReload = false, dev = fa
new UnlinkFilePlugin(),
new WatchRemoveEventPlugin(),
new WatchPagesPlugin(dir),
new FriendlyErrorsWebpackPlugin()
new FriendlyErrorsWebpackPlugin({
// see https://github.com/geowarin/friendly-errors-webpack-plugin/pull/11
clearConsole: true
})
)
}