fix webpage bug
This commit is contained in:
		| @@ -43,12 +43,12 @@ Wwws.getwco = (wconame, ctx) => { | |||||||
|   const webpage = fs.readJSONSync(webconf); |   const webpage = fs.readJSONSync(webconf); | ||||||
|   // check that webconf for tailwindcsscontent property exist for this wco request |   // check that webconf for tailwindcsscontent property exist for this wco request | ||||||
|   const pathtocheckfortw=[`../adminapi/objects/wco/${wconame}/*.{html,js,mustache}`,`../${ctx.tribe}/objects/wwws/${ctx.xapp}/src/**/*.{html,js,mustache}`] |   const pathtocheckfortw=[`../adminapi/objects/wco/${wconame}/*.{html,js,mustache}`,`../${ctx.tribe}/objects/wwws/${ctx.xapp}/src/**/*.{html,js,mustache}`] | ||||||
|   if (!webconf.tailwindcsscontent){ |   if (!webpage.tailwindcsscontent){ | ||||||
|     webconf.tailwindcsscontent=[] |     webpage.tailwindcsscontent=[] | ||||||
|   } |   } | ||||||
|   pathtocheckfortw.forEach(tw=>{ |   pathtocheckfortw.forEach(tw=>{ | ||||||
|     if (!webconf.tailwindcsscontent.includes(tw)){ |     if (!webpage.tailwindcsscontent.includes(tw)){ | ||||||
|       webconf.tailwindcsscontent.push(tw) |       webpage.tailwindcsscontent.push(tw) | ||||||
|     } |     } | ||||||
|   }) |   }) | ||||||
|   // check that all tpl for this compoent are well in pages tpl object |   // check that all tpl for this compoent are well in pages tpl object | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user