Skip to content

Commit 0586399

Browse files
[wip] fix query missing.
1 parent 74025c7 commit 0586399

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

loader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var LimitChunkCountPlugin = require("webpack/lib/optimize/LimitChunkCountPlugin"
1515
var NS = fs.realpathSync(__dirname);
1616

1717
module.exports = function(source) {
18+
var query = loaderUtils.getOptions(this) || {};
1819
var hot = "hot" in query ? query.hot : (!process.env.NODE_ENV || process.env.NODE_ENV === "development");
1920
if (!hot) return source
2021

0 commit comments

Comments
 (0)