Used work from FranckFreiburger
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, consult the docs for vue-loader.
Use your own repository by editing package.json in particular name
, version
, main
, preproduction.url
and production.url
used to build js files:
"name": "formater-pdf-viewer-vjs",
"version": "0.1.7",
"main": "src/formater-pdf-viewer.vue",
"production": {
"url": "https://api.poleterresolide.fr/webcomponents/"
},
<formater-pdf-viewer src="url/file.pdf" lang="fr" ></formater-pdf-viewer>
<script src="https://api.poleterresolide.fr/webcomponents/formater-pdf-viewer-vjs_0.1.7.js"></script>