Module: isDev

Check if you're on a development version or the live version of your site
Source:

(require("isDev"))()

Check if you're on a development version or the live version of your site
Parameters:
Name Type Attributes Default Description
options.dev array <optional>
['.dev','localhost','file:///'] Parts of the url that signify a development build
options.message string <optional>
'development' Message to display if you're in development mode
options.style string <optional>
'top-right' Style of the message to display in: [top-left, top-right, bottom, top, none] In case this isn't 'none', the following css gets added: position: fixed; padding: 1em; display: block; background-color: salmon; color: white; opacity: .7; font-weight: 700; z-index: 9999;
options.class.custom string <optional>
Additional css to add to the element
Source: