Skip to content

Commit 1a15324

Browse files
authored
Merge pull request #1 from alfredriesen/alfredriesen-patch-1
Support 'node-webkit' target
2 parents 20f359d + 4cf2ade commit 1a15324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = function (source) {
5353
const incomingQuery = qs.parse(rawQuery)
5454
const options = loaderUtils.getOptions(loaderContext) || {}
5555

56-
const isServer = target === 'node'
56+
const isServer = target === 'node' || target === 'node-webkit'
5757
const isShadow = !!options.shadowMode
5858
const isProduction = options.productionMode || minimize || process.env.NODE_ENV === 'production'
5959
const filename = path.basename(resourcePath)

0 commit comments

Comments
 (0)