umi-plugin-segment
Advanced tools
Comparing version 1.0.4 to 1.0.5
export default { | ||
plugins: [ | ||
[ | ||
"../../index.js", | ||
'../../index.js', | ||
{ | ||
code: "123", | ||
judge: () => process.env.NODE_ENV !== "production" | ||
key: '123', | ||
judge: () => process.env.NODE_ENV !== 'production' | ||
} | ||
@@ -9,0 +9,0 @@ ] |
@@ -8,5 +8,2 @@ "use strict"; | ||
exports.default = function (api, opts) { | ||
if (process.env.NODE_ENV !== "production") { | ||
return false; | ||
} | ||
if (opts.judge && !opts.judge()) { | ||
@@ -13,0 +10,0 @@ return false; |
{ | ||
"name": "umi-plugin-segment", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"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()) { | ||
@@ -6,0 +3,0 @@ return false; |
4185
54