diff --git a/README.md b/README.md index f401384df..7cad125a7 100644 --- a/README.md +++ b/README.md @@ -222,3 +222,4 @@ The following option has been changed to resourceQuery: - `transformAssetUrls` - `optimizeSSR` - `hotReload` +- `productionMode` diff --git a/lib/index.js b/lib/index.js index feeb28005..1fc558c41 100644 --- a/lib/index.js +++ b/lib/index.js @@ -30,7 +30,7 @@ module.exports = function (source) { const isServer = target === 'node' const isShadow = incomingQuery.shadow != null - const isProduction = minimize || process.env.NODE_ENV === 'production' + const isProduction = options.productionMode || minimize || process.env.NODE_ENV === 'production' const filename = path.basename(resourcePath) const context = rootContext || process.cwd() const sourceRoot = path.dirname(path.relative(context, resourcePath))