An open API service indexing awesome lists of open source software.

https://github.com/davigmacode/hivemind-widget

Hivemind widget component using vue js
https://github.com/davigmacode/hivemind-widget

component hivemind rollup vuejs2 web-component widget

Last synced: 3 months ago
JSON representation

Hivemind widget component using vue js

Awesome Lists containing this project

README

          

# Hivemind Widget

Example using Rollup to bundle one or many Vue.js components into a single .js file that **can be used in any HTML/JS application.**

Refer to [this post on vuetips.com](http://vuetips.com/vue-web-components) for more information.

```html

...



```

## How it works

Components are registered in `src/main.js`.

Component code is in `src/components/ComponentName.vue`.

To add a component :

- Add a `.vue` file in `src/components`
- Register the component in `src/main.js`

## Development

To test your components :

- Launch rollup : `npm run dev` (watch mode)
- Open `demo/index.html` in a browser
- Edit `src/main.js` or your component file
- Refresh the page

## Bundle a release

```
npm run build
```

File will be placed in `dist/my-vue-component.js`.

Refer to `rollup.config.js` for customization options.