zpin-templates
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -677,3 +677,5 @@ 'use strict'; | ||
} | ||
config.pages[pageName].modules.push(moduleName); | ||
if (config.pages[pageName].modules.indexOf(moduleName) < 0) { | ||
config.pages[pageName].modules.push(moduleName); | ||
} | ||
fs.writeFileSync(path.join(process.cwd(), "dist/config.json"), JSON.stringify(config)); | ||
@@ -680,0 +682,0 @@ } |
{ | ||
"name": "zpin-templates", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "Light weight templates for react -> write html get valid react code", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -684,3 +684,5 @@ 'use strict'; | ||
} | ||
config.pages[pageName].modules.push(moduleName); | ||
if(config.pages[pageName].modules.indexOf(moduleName)<0){ | ||
config.pages[pageName].modules.push(moduleName); | ||
} | ||
fs.writeFileSync(path.join(process.cwd(),"dist/config.json"), JSON.stringify(config)) | ||
@@ -687,0 +689,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
277837
3715