{"id":22930,"date":"2015-07-13T13:25:20","date_gmt":"2015-07-13T07:55:20","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=22930"},"modified":"2015-07-15T14:41:12","modified_gmt":"2015-07-15T09:11:12","slug":"how-to-compile-less-file-into-css-file","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/how-to-compile-less-file-into-css-file\/","title":{"rendered":"How to compile Less file into CSS file ?"},"content":{"rendered":"<p>Less (sometimes stylized as LESS) is one of the dynamic style sheet languages that can be compiled into Cascading Style Sheets (CSS), or can run on the server-side and client-side.<\/p>\n<h3 style=\"font-size: 26px!important;margin: 20px 0!important\">How to install Less ?<\/h3>\n<p>The easiest way to install Less on the server, is via npm,<\/p>\n<p><strong>Step 1<\/strong> \u2013 Download and Install nodejs from <a href=\"https:\/\/nodejs.org\/\" target=\"_blank\">https:\/\/nodejs.org\/<\/a><br \/>\n<strong>Step 2<\/strong> \u2013After completing installation Open your command prompt or Terminal and type the command<\/p>\n<p>[java]<br \/>\nnpm install -g less<br \/>\n[\/java]<\/p>\n<h3 style=\"font-size: 26px!important;margin: 20px 0!important\">How to run and compile Less ?<\/h3>\n<p>On the command prompt, go to the folder which contains the Less files (for example Style.less) and execute the following command.<\/p>\n<p>[java]lessc styles.less &gt; styles.css[\/java]<\/p>\n<p><strong>Output<\/strong> : You Found new file &#8220;styles.css&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Less (sometimes stylized as LESS) is one of the dynamic style sheet languages that can be compiled into Cascading Style Sheets (CSS), or can run on the server-side and client-side. How to install Less ? The easiest way to install Less on the server, is via npm, Step 1 \u2013 Download and Install nodejs from [&hellip;]<\/p>\n","protected":false},"author":228,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":7},"categories":[1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/22930"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/228"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=22930"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/22930\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=22930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=22930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=22930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}