2.0.6 • Published 1 year ago

@vaadin/vaadin-development-mode-detector v2.0.6

Weekly downloads
20,828
License
Apache-2.0
Repository
github
Last release
1 year ago

Utility method for detecting that an application using Vaadin Elements is running in development mode

Running Tests

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: 1. Run npm install 1. Run bower install 1. Run npm start 1. Open http://localhost:8081/test/index.html 1. Verify that mode is development (green) 1. Verify that importIfDevelopmentMode is run (green) 1. Open http://`:8081/test/index.html 1. Verify thatmodeisproduction(orange) 1. Verify thatimportIfDevelopmentModeisignored(orange) 1. Runnpm run start:prod1. Open http://localhost:8081/test/index.html 1. Verify thatmodeisproduction(orange) 1. Verify thatimportIfDevelopmentModeisignored(orange) 1. Open http://:8081/test/index.html 1. Verify thatmodeisproduction(orange) 1. Verify thatimportIfDevelopmentModeisignored` (orange)