Tips &Tricks Blog

0

throw new Error(“Module ‘” + loader.path + “‘ is not a loader (must have normal or pitch function)”);

Solution: In webpack 2 automatic-loader-module-name-extension-removed. Hence, you will have to add -loader to each loader in your config. For example, – { test: /.(jpg|png|svg)$/, use: ‘url?limit=8192&name=./img/[hash].[ext]’} + { test: /.(jpg|png|svg)$/, use: ‘url-loader?limit=8192&name=./img/[hash].[ext]’} For more...

0

href javascript ; void 0

The void operator is often used to obtain the undefined primitive value. <a href=”javascript:void(0);”> Click Me </a> In this case, it is used to avoid # in the URI bar. The hrefs value will...

0

What is &nbsp in html?

<p> Hello&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;World</p> Rendres “Hello     World”. As Non-breaking spaces are not collapsed when rendered by the browser on a webpage. You’ll have to change &NBSP to &nbsp. <p> Hello World</p> Renders “Hello World” on a webpage.

0

How to link gists to your website?

Follow these three simple steps to include the gist in your website. Create a gist on gist.github.com Grab the {gist id} from the URL, and gist {file name} In your wordpress post, you can...