Saturday, 15 May 2010

sass - Changing mixins.scss does not change the CSS files importing it -



sass - Changing mixins.scss does not change the CSS files importing it -

here doing:

we creating hook modify \html\css\common\_mixins.scss file.

the file when deployed updated. far good.

the problem css files importing mixin not showing changes, illustration file - \webapps\root\html\css\taglib\navbar.css.

after debugging found there .sass-cache folder in \webapps\root\html\css\taglib\.sass-cache has final generated file navbar.css used portal.

now when deploy hook css files import mixin not recompiled/regenerated in .sass-cache folder, makes hook useless.

can tell me if there way create utilize of mixin or there anyother way or may can manually recompile css files using mixins if knew how to.

also see deleting .sass-cache not alternative since folder used liferay patch css files if there hot-fix.

environment

liferay ee 6.2 sp9 bundled tomcat

reason from comments

the reason why need alter file have way disable responsive elements navigation-bar. or improve still disable responsiveness whole portal. since responsiveness due media-query.

thanks

it's not possible alter _mixins.scss via hook, , it's not due evil sass-cache.

_mixins.scss written sass , needs compile , store in sass-cache. every theme includes compiled version of every sass file.

the way build own theme , alter _mixins.scss or other file in _diff folder.

why need alter particular file?

sass liferay liferay-6 mixins liferay-theme

No comments:

Post a Comment