Source maps are a great way to do debugging the minified/build version of the code. This often comes handy when we get a defect in production and wants to debug. Gatsby by default generate sourcemaps in build version. We can override this default behaviour and disable the generation of sourcemap (.map) files. For this we can use a Gatsby plugin called gatsby-plugin-no-sourcemaps Add the plugin gatsby-plugin-no-sourcemaps or use yarn command if you are using Yarn After installing this plugin you need to add the entry in Gatsby plugins array. Open gatsby-config.js and add the plugin name in plugins array. Your array will now look like below Now go to the…
-
-
Bootstrap 5 Alpha 1 is out
These are the notable changes Has more colors and improvised color palette jQuery is not included and is not required any more, still everything works. Isn’t that good? No IE support. (at last….) Updated form components Customization support for checkbox, radio, switches Utilities API – The utility API is a Sass based tool to generate utility classes. New xxl breakpoint New gutters class Bootstrap icons – Bootstrap now has its own icons – the SVG icons. Check it out here https://v5.getbootstrap.com/ Please note that since its a alpha version there might be breaking changes in next release.
-
Error: Cannot find module ‘puppeteer/DeviceDescriptors’
This top level file has been removed from the Puppeteer package from puppeteer v5.0.0. . The same data is exposed via puppeteer.devices Use this if you are using version 5 or above const puppeteer = require('puppeteer'); const devices = puppeteer.devices;
-
Add dark mode in your website with 3 lines of code
Use the below 3 lines of code in your CSS file to active dark mode Add below code in your style sheet.