umi-plugin-segment
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -8,2 +8,5 @@ "use strict"; | ||
exports.default = function (api, opts) { | ||
if (process.env.NODE_ENV !== "production") { | ||
return false; | ||
} | ||
if (opts.judge && !opts.judge()) { | ||
@@ -10,0 +13,0 @@ return false; |
{ | ||
"name": "umi-plugin-segment", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Segment for umi", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
export default (api, opts) => { | ||
if (process.env.NODE_ENV !== "production") { | ||
return false; | ||
} | ||
if (opts.judge && !opts.judge()) { | ||
@@ -3,0 +6,0 @@ return false; |
4323
60