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

remove FriendlyErrorsWebpackPlugin option

This commit is contained in:
nkzawa 2016-12-04 07:01:15 +09:00
parent c5667a7539
commit e1a231cd68

View file

@ -3,12 +3,12 @@ import { createHash } from 'crypto'
import webpack from 'webpack' import webpack from 'webpack'
import glob from 'glob-promise' import glob from 'glob-promise'
import WriteFilePlugin from 'write-file-webpack-plugin' import WriteFilePlugin from 'write-file-webpack-plugin'
import FriendlyErrorsWebpackPlugin from 'friendly-errors-webpack-plugin'
import UnlinkFilePlugin from './plugins/unlink-file-plugin' import UnlinkFilePlugin from './plugins/unlink-file-plugin'
import WatchPagesPlugin from './plugins/watch-pages-plugin' import WatchPagesPlugin from './plugins/watch-pages-plugin'
import WatchRemoveEventPlugin from './plugins/watch-remove-event-plugin' import WatchRemoveEventPlugin from './plugins/watch-remove-event-plugin'
import DynamicEntryPlugin from './plugins/dynamic-entry-plugin' import DynamicEntryPlugin from './plugins/dynamic-entry-plugin'
import DetachPlugin from './plugins/detach-plugin' import DetachPlugin from './plugins/detach-plugin'
import FriendlyErrorsWebpackPlugin from 'friendly-errors-webpack-plugin'
export default async function createCompiler (dir, { hotReload = false, dev = false } = {}) { export default async function createCompiler (dir, { hotReload = false, dev = false } = {}) {
dir = resolve(dir) dir = resolve(dir)
@ -70,10 +70,7 @@ export default async function createCompiler (dir, { hotReload = false, dev = fa
new UnlinkFilePlugin(), new UnlinkFilePlugin(),
new WatchRemoveEventPlugin(), new WatchRemoveEventPlugin(),
new WatchPagesPlugin(dir), new WatchPagesPlugin(dir),
new FriendlyErrorsWebpackPlugin({ new FriendlyErrorsWebpackPlugin()
// see https://github.com/geowarin/friendly-errors-webpack-plugin/pull/11
clearConsole: true
})
) )
} }