We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 20f359d + 4cf2ade commit 1a15324Copy full SHA for 1a15324
lib/index.js
@@ -53,7 +53,7 @@ module.exports = function (source) {
53
const incomingQuery = qs.parse(rawQuery)
54
const options = loaderUtils.getOptions(loaderContext) || {}
55
56
- const isServer = target === 'node'
+ const isServer = target === 'node' || target === 'node-webkit'
57
const isShadow = !!options.shadowMode
58
const isProduction = options.productionMode || minimize || process.env.NODE_ENV === 'production'
59
const filename = path.basename(resourcePath)
0 commit comments