<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Gulp CSS compilation in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Gulp-CSS-compilation/m-p/27348#M2641</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi, I'm using the FTP connection to manipulate the css of my hubspot's website and I notice that inside the css file there are some hubspot include like this one &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% include "custom/page/theme/style.css" %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My doubt is about how to compilate the css file using gulp. Do you have any suggestion about plugins to ignore this piece of code in the development step&amp;nbsp;but compile this piece of code for the production without any error? I'm doing the compilation normally with CSS files without the include, but files with this include isn't generated.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2017 17:41:34 GMT</pubDate>
    <dc:creator>bruno-ebanx</dc:creator>
    <dc:date>2017-08-21T17:41:34Z</dc:date>
    <item>
      <title>Gulp CSS compilation</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Gulp-CSS-compilation/m-p/27348#M2641</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I'm using the FTP connection to manipulate the css of my hubspot's website and I notice that inside the css file there are some hubspot include like this one &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% include "custom/page/theme/style.css" %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My doubt is about how to compilate the css file using gulp. Do you have any suggestion about plugins to ignore this piece of code in the development step&amp;nbsp;but compile this piece of code for the production without any error? I'm doing the compilation normally with CSS files without the include, but files with this include isn't generated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 17:41:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Gulp-CSS-compilation/m-p/27348#M2641</guid>
      <dc:creator>bruno-ebanx</dc:creator>
      <dc:date>2017-08-21T17:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Gulp CSS compilation</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Gulp-CSS-compilation/m-p/27411#M2642</link>
      <description>&lt;P&gt;Hi Bruno&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using the local hubl server? Or are you compiling and uploading using the standard design manager tools?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use Gulp in our local setup but I don't make use of the standard hubl style includes, I just use normal SASS includes&amp;nbsp;and compile using compass. My setup in my gulpfile is as follows:&lt;/P&gt;&lt;PRE&gt;gulp.&lt;SPAN&gt;task&lt;/SPAN&gt;(&lt;SPAN&gt;'compass'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;() {&lt;BR /&gt;    gulp.&lt;SPAN&gt;src&lt;/SPAN&gt;(&lt;SPAN&gt;'./sass/*.scss'&lt;/SPAN&gt;)&lt;BR /&gt;        .&lt;SPAN&gt;pipe&lt;/SPAN&gt;(compass({&lt;BR /&gt;            &lt;SPAN&gt;config_file&lt;/SPAN&gt;: &lt;SPAN&gt;'config.rb'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;css&lt;/SPAN&gt;: &lt;SPAN&gt;'custom/system/css'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;sass&lt;/SPAN&gt;: &lt;SPAN&gt;'sass'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;sourcemap&lt;/SPAN&gt;: &lt;SPAN&gt;true&lt;BR /&gt;&lt;/SPAN&gt;        }))&lt;BR /&gt;        .&lt;SPAN&gt;pipe&lt;/SPAN&gt;(browserSync.&lt;SPAN&gt;stream&lt;/SPAN&gt;())&lt;BR /&gt;        .&lt;SPAN&gt;on&lt;/SPAN&gt;(&lt;SPAN&gt;'error'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;swallowError&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;})&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;If your not using compass or browserSync, yours will likely ned to be different. In my sass folder I have a themename.scss file which is then complied out to custom/system/css/themename.css.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Then in the header of my pages I have:&lt;/P&gt;&lt;PRE&gt;{{ standard_header_includes }}&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;link &lt;/SPAN&gt;&lt;SPAN&gt;rel=&lt;/SPAN&gt;&lt;SPAN&gt;"stylesheet" &lt;/SPAN&gt;&lt;SPAN&gt;href=&lt;/SPAN&gt;&lt;SPAN&gt;"{{ get_public_template_url('custom/system/css/themename.css') }}"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Lastly in my config.yaml file I have:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;extensionResourceMappings:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;  "1": &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;The last step mimics the fact that I don't have the stylesheet included globally in the HubSpot Content Settings, if you did want to include it globally though you can just&amp;nbsp;change&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"1": &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&amp;nbsp;:&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;to:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"1": &lt;/SPAN&gt;&lt;SPAN&gt;"custom/system/css/themename.css"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;And remove the &amp;lt;link&amp;gt; from the header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way I have never had to worry about the&amp;nbsp;HubL style includes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is of some help, my apologies if it is not quite what you are looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 08:36:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Gulp-CSS-compilation/m-p/27411#M2642</guid>
      <dc:creator>dessery</dc:creator>
      <dc:date>2017-08-22T08:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Gulp CSS compilation</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Gulp-CSS-compilation/m-p/27492#M2658</link>
      <description>&lt;P&gt;Hey Dessery, thanks for the answer &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not using hubl server, only standard design manager tools with local CSS that I create. I'm still using hubspot's include because I'm organizing the archtecture of my website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'll search more about how to use the hubl server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 14:50:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Gulp-CSS-compilation/m-p/27492#M2658</guid>
      <dc:creator>bruno-ebanx</dc:creator>
      <dc:date>2017-08-22T14:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Gulp CSS compilation</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Gulp-CSS-compilation/m-p/27519#M2662</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/15386"&gt;@bruno-ebanx&lt;/a&gt;&amp;nbsp;you can find our HubL Resources here:&amp;nbsp;&lt;A href="http://designers.hubspot.com/docs/hubl/intro-to-hubl" target="_blank"&gt;http://designers.hubspot.com/docs/hubl/intro-to-hubl&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/15644"&gt;@dessery&lt;/a&gt;&amp;nbsp;for sharing your contributions!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 17:30:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Gulp-CSS-compilation/m-p/27519#M2662</guid>
      <dc:creator>nicolebrenner</dc:creator>
      <dc:date>2017-08-22T17:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Gulp CSS compilation</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Gulp-CSS-compilation/m-p/27610#M2666</link>
      <description>&lt;P&gt;Hi Bruno&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That makes sense then, unfortunately I think you are probably going to have a hard time trying to use gulp to compile using the HubSpot include statements. I&amp;nbsp;completely get why you are trying to do it though if you are using the design manager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the past I have tried building sites all in the design manager and I have just had one main css file, that includes lots of individual files using hubl but in the exact same architecture as I do with a SASS setup, it does work quite well substituing hubl variables for SASS variables but it is a pain in the ass having to publish both stylesheets everytime you want to&amp;nbsp;make a change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The local hubl server is well worth checking out, its far from perfect but being able to use my own IDE and normal development workflow makes developing for HubSpot a much more pleasurable experience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck with your investigations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 09:41:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Gulp-CSS-compilation/m-p/27610#M2666</guid>
      <dc:creator>dessery</dc:creator>
      <dc:date>2017-08-23T09:41:34Z</dc:date>
    </item>
  </channel>
</rss>

