Name: vaadin-development-mode-detector
Owner: Vaadin
Description: Detects whether an application is running in development or production
Created: 2017-11-13 07:52:57.0
Updated: 2018-02-01 07:55:51.0
Pushed: 2018-05-10 16:54:42.0
Size: 30
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Utility method for detecting that an application using Vaadin Elements is running in development mode
There are no automatic tests as the functionality depends on the host the code is run on (localhost vs others) and the bundling status.
To verify functionality:
bower install
cd test && bower install ; cd ..
polyserve -H 0.0.0.0
mode
is development
(green)importIfDevelopmentMode
is imported
(green)<yourip>
:8080/test/index.htmlmode
is production
(orange)importIfDevelopmentMode
is ignored
(orange)cd test/bower_components && ln -s ../../vaadin-development-mode-detector.html && cd .. && polymer build --bundle
mode
is production
(orange)importIfDevelopmentMode
is ignored
(orange)<yourip>
:8080/test/build/default/index.htmlmode
is production
(orange)importIfDevelopmentMode
is ignored
(orange)