diff --git a/lib/index.js b/lib/index.js index 752f9854e..30b389c96 100644 --- a/lib/index.js +++ b/lib/index.js @@ -53,7 +53,7 @@ module.exports = function (source) { const incomingQuery = qs.parse(rawQuery) const options = loaderUtils.getOptions(loaderContext) || {} - const isServer = target === 'node' + const isServer = target === 'node' || target === 'node-webkit' const isShadow = !!options.shadowMode const isProduction = options.productionMode || minimize || process.env.NODE_ENV === 'production' const filename = path.basename(resourcePath)