Tips &Tricks Blog

0

path.join vs path.resolve in node.js

path.join([…paths]) joins all the path segments using platform specific delimiter. path.join(‘/foo’, ‘bar’, ‘baz/zxcv’, ‘abcd’, ‘..’) // ‘/foo/bar/baz/zxcv/abcd/…’ path.resolve([…paths]) Resolves all the path segments into an absolute path. It processes from right to left, until...

0

Delete unused docker images

You usually have to clear unused docker images otherwise it will eat up all your disk space. I realized this when i got an error ERROR: Failed to create usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore: No space left on...

How does browser work? 0

How does browser work?

Have you also wondered how browser works? How does the flow chart look like for Fetch, Parse, Flow, Paint Engine look Douglass Crockfard exaplains the flow chart with a history of Mosaic and Netscape...

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...