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:
npm installbower installnpm startmode is development (green)importIfDevelopmentMode is run (green)<yourip>:8081/test/index.htmlmode is production (orange)importIfDevelopmentMode is ignored (orange)npm run start:prodmode is production (orange)importIfDevelopmentMode is ignored (orange)<yourip>:8081/test/index.html
mode is production (orange)importIfDevelopmentMode is ignored (orange)