This commit is contained in:
nodegin 2016-10-27 07:49:05 +08:00 committed by Naoyuki Kanezawa
parent dbc125f7e3
commit e763dc731b

View file

@ -31,6 +31,9 @@ export default async function createCompiler (dir, { hotReload = false } = {}) {
const nodeModulesDir = join(__dirname, '..', '..', '..', 'node_modules')
const plugins = [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
new WriteFilePlugin({
exitOnErrors: false,
log: false,