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:
- Run
npm install
- Run
bower install
- Run
npm start
- Open http://localhost:8081/test/index.html
- Verify that
mode
is development
(green)
- Verify that
importIfDevelopmentMode
is run
(green)
- Open http://
<yourip>
:8081/test/index.html
- Verify that
mode
is production
(orange)
- Verify that
importIfDevelopmentMode
is ignored
(orange)
- Run
npm run start:prod
- Open http://localhost:8081/test/index.html
- Verify that
mode
is production
(orange)
- Verify that
importIfDevelopmentMode
is ignored
(orange)
- Open http://
<yourip>
:8081/test/index.html
- Verify that
mode
is production
(orange)
- Verify that
importIfDevelopmentMode
is ignored
(orange)