We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9cbbcd commit 69bc1c1Copy full SHA for 69bc1c1
README.md
@@ -222,3 +222,4 @@ The following option has been changed to resourceQuery:
222
- `transformAssetUrls`
223
- `optimizeSSR`
224
- `hotReload`
225
+- `productionMode`
lib/index.js
@@ -30,7 +30,7 @@ module.exports = function (source) {
30
31
const isServer = target === 'node'
32
const isShadow = incomingQuery.shadow != null
33
- const isProduction = minimize || process.env.NODE_ENV === 'production'
+ const isProduction = options.productionMode || minimize || process.env.NODE_ENV === 'production'
34
const filename = path.basename(resourcePath)
35
const context = rootContext || process.cwd()
36
const sourceRoot = path.dirname(path.relative(context, resourcePath))
0 commit comments