LESS CSS Engine import-once duplicate styles

meenu

New Member
LESS is importing the same LESS across different files despite using import-once.For example:\[code\]<link rel="stylesheet/less" type="text/css" href="http://stackoverflow.com/questions/14591071/app.less"><link rel="stylesheet/less" type="text/css" href="http://stackoverflow.com/questions/14591071/theme.less">\[/code\]app.less\[code\]@import-once "1.less";body{ color:blue;}\[/code\]theme.less\[code\]@import-once "1.less";body{ color:pink;}\[/code\]produces:\[code\]<style type="text/css" id="less:good-docs-less-app"> body { background: yellow; } body { color: blue; }</style><style type="text/css" id="less:good-docs-less-theme"> body { background: yellow; } body { color: pink; }</style>\[/code\]You notice \[code\]body{background:yellow}\[/code\] is duplicated in both styles. Is it possible to import this in both LESS files without it writing it twice?
 
Back
Top