Liferay: how to avoid rebuilding/redeploying CSS files


Tags: css,liferay

Problem :

if you're familiar with Liferay you'll know that when you make an itsy-bitsy change to a css file you shall rebuild the theme and redeploy it.

As for redeploying I made a symlink (mind you I'm on Windows: for the curious creating a symlink on Vista is just a matter of issuing mklink /d dir1 dir2).

But what about rebuilding the stuff with maven? I'd rather skip that step. Basically what it does is combyining and packing all CSS in one everything_packed.css. Is there a sort of config variable to tell liferay just to include the raw files and skip redeployment alltogether?

Thanks



Solution :

Guys I found the solution myself.

You should have a file called portal-ext.properties file in

$TOMCAT_DIR/webapps/ROOT/WEB-INFO/classes

Or more specifically for my win setup in C:\liferay\webapps\ROOT\WEB-INF\classes

The file would hold the value

theme.css.fast.load=false

This will prevent liferay to be looking for the everything_packed.css and so you're free to modify your stuff without rebuilding and CTRL-R to refresh the page and see the changes.


    CSS Howto..

    How can I keep things aligned in an adaptive layout

    CSS - how to position content data-title

    How to show text on hover only in CSS

    How to get the rotation of degree with getBoundingClientRect?

    How to make a text box have rounded corners?

    How to get the content of the bottom element of a flexbox to be 100% height its container

    How do I vertically center align a position:relative element

    How to add a third level to my CSS drop down menu

    How to make alerts overlap?

    how to apply css to a particular asp.net table?

    how to use {{$variable}} in css , Laravel 5.1 [closed]

    How to center parts of a list efficiently with CSS [Img Inside]

    how to collapse navbar in twitter bootstrap after click on link if it woud be collapsed because of css? [closed]

    How can I give seperate margin to individual control and also keeping same style in CSS for all of them HTML5 [closed]

    How do I keep my text on one line in Firefox?

    How to animate text with css font-weight property in jQuery ? normal to bold

    How to host html files like css and javascript files

    How to put bull inside css circle

    How do I make the Android WebView not ignore the 'height' css property?

    How to make span in bootstrap nav have width: 0px?

    How to keep nav bar from shifting elements to next line when zooming in?

    Show header below fixed nav when clicking hash tag link

    How to select part of a custom element with CSS?

    web app CSS navbar retina icons - How can I fit a 60x60 icon into a 30x30 background-image on IE7+8?

    How to get a navbar to display text depending on button clicked

    how to stop css/jquery rotation

    How to scroll LI items in a fixed height UL?

    CSS: How to target a specific cell inside a table?

    How to have a two headings in same line with css?

    How to show CSS transitions only on hover?