NPM errorToday I have encountered a problem with NPM. When I tried to install a new package, it returned me npm ERR! code ERR_STREAM_WRITE_AFTER_END. I would like to share the details and the solution for those of you who will see the same error.

Code minification and cache-busting

cacheAsking users to clear cache in their browsers definitely is not something that you would like to do. How to make sure that browser's cache will not be a problem after deployment of the new application? It is unexpectedly easy with a proper Gulp plugin - cachebust.



Code minification with Gulp

minificationA year ago I discussed advantages and disadvantages of frontend code minification. My conclusion was to apply it until it is not extremely hard to do. This time, I am implementing it in a project that already uses Gulp. I have HTML, JS, CSS and PNG files on the website. Additionally, there are some files that are not directly displayed on any page but a user can download them so they should be included in the final package as well.

Plugin for EU cookies law

cookies smallIn 2011, European Union directive was adopted by local governments of EU countries. According to the law, website owners must take some additional actions if they want to use cookies. For example they have to explain users what cookies are, how they are used on the website and obtain users consent.

Even that it does not improve usability or adds functionality, additional work has to be done by web developers as it is required by law. This article shows how it can be implemented using jquery-eu-cookie-law-popup.

Grid system in Bootstrap 4

unevenCols smallBootstrap 4 is not released officially yet, but at the time of writing this post there is 4.0.0-alpha.6 available. I have had a chance to play with a grid system in both: version 3 and 4 so I am here to show you how it works in real life scenarios. They do not differ much but if you have not had worked with Bootstrap's solution to responsive design, you should like it.