mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
parent
dbc125f7e3
commit
e763dc731b
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue