This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** | |
less config: | |
... | |
require('@easy-webpack/config-less') | |
({ filename: 'styles.css', allChunks: false, sourceMap: false }), | |
... | |
*** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
var proto = String.prototype; | |
if (undefined === proto.startsWith) { | |
/** | |
* Returns true if the string starts with the given one | |
* | |
* @param {String} str |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Class | |
function MyClass() { | |
this.ownMember = 123; | |
} | |
//Prototype declaration | |
MyClass.prototype = { | |
prototypeMember: 456 | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Open the debugger console, type the following: | |
var _alert = window.alert; | |
window.alert = function () { debugger; _alert.apply(this, arguments); } | |
//Do not reload the page! | |
//When the alert will be called, it breaks in the debugger and you have access to the call stack. | |
//Credits to @ArnaudBuchholz |
NewerOlder