<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Gulp and Visual Studio: concatenation and minification	</title>
	<atom:link href="https://www.cognim.co.uk/gulp-vs-minification/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.cognim.co.uk/gulp-vs-minification/</link>
	<description>Enterprise system implementation. Making the complex simple</description>
	<lastBuildDate>Fri, 06 Nov 2015 11:32:18 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Edward Ridge		</title>
		<link>https://www.cognim.co.uk/gulp-vs-minification/#comment-187</link>

		<dc:creator><![CDATA[Edward Ridge]]></dc:creator>
		<pubDate>Fri, 06 Nov 2015 11:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.cognim.co.uk/?p=5268#comment-187</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.cognim.co.uk/gulp-vs-minification/#comment-186&quot;&gt;Jay&lt;/a&gt;.

Hi Jay, thanks for the nice comment! To answer your questions:

1) I agree that is you&#039;re working with a CSS pre-processor then ideally you don&#039;t want to check in the generated CSS - they&#039;re basically build artifacts. This is exactly what I ended up doing here, but annoyingly have since moved on from the project and forgot to write it up!

From memory, I referenced the generated CSS in my Views but didn&#039;t include them in source control. I modified the csproj to add the generated CSS in the &quot;BeforeBuild&quot; Target section, but don&#039;t believe there were any other changes. If it doesn&#039;t work let me know and I&#039;ll spend some time digging into it.

2) Yes, I&#039;ve actually had the 4th part mostly written and sitting in my drafts for a while now, but just started a new contract which has eaten up my time. I promise I will finish it off and publish ASAP!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.cognim.co.uk/gulp-vs-minification/#comment-186">Jay</a>.</p>
<p>Hi Jay, thanks for the nice comment! To answer your questions:</p>
<p>1) I agree that is you&#8217;re working with a CSS pre-processor then ideally you don&#8217;t want to check in the generated CSS &#8211; they&#8217;re basically build artifacts. This is exactly what I ended up doing here, but annoyingly have since moved on from the project and forgot to write it up!</p>
<p>From memory, I referenced the generated CSS in my Views but didn&#8217;t include them in source control. I modified the csproj to add the generated CSS in the &#8220;BeforeBuild&#8221; Target section, but don&#8217;t believe there were any other changes. If it doesn&#8217;t work let me know and I&#8217;ll spend some time digging into it.</p>
<p>2) Yes, I&#8217;ve actually had the 4th part mostly written and sitting in my drafts for a while now, but just started a new contract which has eaten up my time. I promise I will finish it off and publish ASAP!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jay		</title>
		<link>https://www.cognim.co.uk/gulp-vs-minification/#comment-186</link>

		<dc:creator><![CDATA[Jay]]></dc:creator>
		<pubDate>Thu, 05 Nov 2015 22:30:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.cognim.co.uk/?p=5268#comment-186</guid>

					<description><![CDATA[Hey Edward

These are great articles! Been looking at bunch of blogs and articles but none of them give a clear bigger picture - especially when it comes to how to handle the development and deployment evironments - min vs not to min etc

2 questions:
In the previous post you have the scss to css - so i&#039;m guessing for the above to work you are checking-in your css along with scsss to source control? With multiple devs working and updating same scss files - the css changes can be quite noisy. I suppose it the release build could do those steps too.

Are you planning to write the next 2 articles in this series? Would be nice to know how you fit testing+linting into the CI pipeline and gulp]]></description>
			<content:encoded><![CDATA[<p>Hey Edward</p>
<p>These are great articles! Been looking at bunch of blogs and articles but none of them give a clear bigger picture &#8211; especially when it comes to how to handle the development and deployment evironments &#8211; min vs not to min etc</p>
<p>2 questions:<br />
In the previous post you have the scss to css &#8211; so i&#8217;m guessing for the above to work you are checking-in your css along with scsss to source control? With multiple devs working and updating same scss files &#8211; the css changes can be quite noisy. I suppose it the release build could do those steps too.</p>
<p>Are you planning to write the next 2 articles in this series? Would be nice to know how you fit testing+linting into the CI pipeline and gulp</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Edward Ridge		</title>
		<link>https://www.cognim.co.uk/gulp-vs-minification/#comment-185</link>

		<dc:creator><![CDATA[Edward Ridge]]></dc:creator>
		<pubDate>Thu, 08 Oct 2015 09:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.cognim.co.uk/?p=5268#comment-185</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.cognim.co.uk/gulp-vs-minification/#comment-184&quot;&gt;Eugene&lt;/a&gt;.

Hi Eugene - there is only one _Layout.cshtml page in the usual Views/Shared folder. You can see the file as it is today &lt;a href=&quot;https://github.com/edwardridge/Gulp-and-Visual-Studio/blob/a2a5eb8b4df4457db3c1025d2fb7162d39f0c1af/Gulp%20and%20Visual%20Studio/Views/Shared/_Layout.cshtml&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. In there, there is a section at the top for CSS and one at the bottom for JavaScript. For example, here&#039;s the JavaScript block:

&lt;code&gt;
&lt; ! -- build:js /dist/libs.js - - &gt;
    &lt; script src=&quot;/Scripts/Libraries/jquery.js&quot;&gt;&lt; / script &gt;
    &lt; script src=&quot;/Scripts/Libraries/bootstrap.js&quot;&gt;&lt; / script &gt;
    &lt; script src=&quot;/Scripts/Libraries/respond.js&quot;&gt;&lt; / script &gt;
&lt; ! -- endbuild - - &gt;
&lt;/code&gt;
(NB I&#039;ve had to put some extra spaces in there as WordPress doesn&#039;t like the code!)

The Gulp task will then run on a release build, and change this block into one minified and concatenated file which is then referenced in the same _Layout.cshtml page. So the entire block above will get replaced with the following:

&lt;code&gt;
&lt; script src=&quot;/dist/libs-204324b1dd.js&quot; &gt;&lt; / script &gt;
&lt;/code&gt;

So, we only have one _Layout.cshtml page with sections that get replaced when we build for a release. 

Hope this answers your question!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.cognim.co.uk/gulp-vs-minification/#comment-184">Eugene</a>.</p>
<p>Hi Eugene &#8211; there is only one _Layout.cshtml page in the usual Views/Shared folder. You can see the file as it is today <a href="https://github.com/edwardridge/Gulp-and-Visual-Studio/blob/a2a5eb8b4df4457db3c1025d2fb7162d39f0c1af/Gulp%20and%20Visual%20Studio/Views/Shared/_Layout.cshtml" target="_blank" rel="nofollow">here</a>. In there, there is a section at the top for CSS and one at the bottom for JavaScript. For example, here&#8217;s the JavaScript block:</p>
<p><code><br />
< ! -- build:js /dist/libs.js - - ><br />
    < script src="/Scripts/Libraries/jquery.js">< / script ><br />
    < script src="/Scripts/Libraries/bootstrap.js">< / script ><br />
    < script src="/Scripts/Libraries/respond.js">< / script ><br />
< ! -- endbuild - - ><br />
</code><br />
(NB I&#8217;ve had to put some extra spaces in there as WordPress doesn&#8217;t like the code!)</p>
<p>The Gulp task will then run on a release build, and change this block into one minified and concatenated file which is then referenced in the same _Layout.cshtml page. So the entire block above will get replaced with the following:</p>
<p><code><br />
< script src="/dist/libs-204324b1dd.js" >< / script ><br />
</code></p>
<p>So, we only have one _Layout.cshtml page with sections that get replaced when we build for a release. </p>
<p>Hope this answers your question!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Eugene		</title>
		<link>https://www.cognim.co.uk/gulp-vs-minification/#comment-184</link>

		<dc:creator><![CDATA[Eugene]]></dc:creator>
		<pubDate>Thu, 08 Oct 2015 01:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.cognim.co.uk/?p=5268#comment-184</guid>

					<description><![CDATA[Don&#039;t you have to instance of _Layout.cshtml? One that has all the configuration and the one that gets all the minified stuff for production. It&#039;s not clear were you keep the two, how do you separate them? How do you switch between them?]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t you have to instance of _Layout.cshtml? One that has all the configuration and the one that gets all the minified stuff for production. It&#8217;s not clear were you keep the two, how do you separate them? How do you switch between them?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: alex		</title>
		<link>https://www.cognim.co.uk/gulp-vs-minification/#comment-183</link>

		<dc:creator><![CDATA[alex]]></dc:creator>
		<pubDate>Thu, 01 Oct 2015 23:37:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.cognim.co.uk/?p=5268#comment-183</guid>

					<description><![CDATA[Hi Edward, 
Yes, I&#039;m trying to fix it now. 
Will email you the fix as soon as I get a green build. :-)]]></description>
			<content:encoded><![CDATA[<p>Hi Edward,<br />
Yes, I&#8217;m trying to fix it now.<br />
Will email you the fix as soon as I get a green build. 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Edward Ridge		</title>
		<link>https://www.cognim.co.uk/gulp-vs-minification/#comment-182</link>

		<dc:creator><![CDATA[Edward Ridge]]></dc:creator>
		<pubDate>Thu, 01 Oct 2015 17:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.cognim.co.uk/?p=5268#comment-182</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.cognim.co.uk/gulp-vs-minification/#comment-181&quot;&gt;alex&lt;/a&gt;.

Hi Alex, unfortunately I haven&#039;t used Visual Studio online so can&#039;t say for sure why this happening. Does it come up with any error messages?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.cognim.co.uk/gulp-vs-minification/#comment-181">alex</a>.</p>
<p>Hi Alex, unfortunately I haven&#8217;t used Visual Studio online so can&#8217;t say for sure why this happening. Does it come up with any error messages?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: alex		</title>
		<link>https://www.cognim.co.uk/gulp-vs-minification/#comment-181</link>

		<dc:creator><![CDATA[alex]]></dc:creator>
		<pubDate>Thu, 01 Oct 2015 04:14:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.cognim.co.uk/?p=5268#comment-181</guid>

					<description><![CDATA[Thanks for the great article but the pre build script breaks the build on Visual studio online :-)]]></description>
			<content:encoded><![CDATA[<p>Thanks for the great article but the pre build script breaks the build on Visual studio online 🙂</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
