Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Extract "query" from "options" for webpack2
Browse files Browse the repository at this point in the history
  • Loading branch information
amireh committed Feb 10, 2017
1 parent b39e44e commit 05225b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/WebpackUtils.js
Expand Up @@ -106,6 +106,9 @@ exports.extractLoaders = function extractLoaders(entry) {
else if (typeof entry.loader === 'string' && entry.query) {
return { path: entry.loader, query: entry.query };
}
else if (typeof entry.loader === 'string' && entry.options) {
return { path: entry.loader, query: '?' + JSON.stringify(entry.options) };
}
else if (typeof entry.loader === 'string') {
return extractPathAndQueryFromString(entry.loader);
}
Expand Down

0 comments on commit 05225b5

Please sign in to comment.