| .. | ||
| dist | ||
| src | ||
| .browserslistrc | ||
| .gitattributes | ||
| .gitignore | ||
| babel.config.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| vue.config.js | ||
Example Web Component using Vue framework
Structure
Web component
/src/components/VueWebComponent.vue
Debug app
-
For debugging purposes, the component can be mounted into a demo app
-
/src/App.vueand/src/main.jsprovide demo app functionality, and do not affect the final built web component
Building
- Run
npm run build
Debugging
- Run
npm run serveto serve the demo app. This can be used to debug the component. Note, the base URL will be set to it's default value of a localhost microscope server