Skip to content

Commit 9f20be3

Browse files
helailifrandiox
authored andcommitted
load webpack.prod.conf when NODE_ENV=production (vuejs-templates#864)
1 parent 6b280c7 commit 9f20be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/build/dev-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var path = require('path')
1010
var express = require('express')
1111
var webpack = require('webpack')
1212
var proxyMiddleware = require('http-proxy-middleware')
13-
var webpackConfig = {{#if_or unit e2e}}process.env.NODE_ENV === 'testing'
13+
var webpackConfig = {{#if_or unit e2e}}process.env.NODE_ENV === 'testing' || 'production'
1414
? require('./webpack.prod.conf')
1515
: {{/if_or}}require('./webpack.dev.conf')
1616

0 commit comments

Comments
 (0)