-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Dionlee Uy edited this page Oct 2, 2020
·
3 revisions
Install via npm:
npm i @dmuy/dialog
Include in your app
import '@dmuy/dialog/dist/duDialog.css'
import duDialog from '@dmuy/dialog'Use the following if you don't want to host the js and css files:
https://unpkg.com/@dmuy/dialog@{version}/dist/duDialog.css
https://unpkg.com/@dmuy/dialog@{version}/dist/duDialog.js
https://cdn.jsdelivr.net/gh/dmuy/duDialog@{version}/dist/duDialog.css
https://cdn.jsdelivr.net/gh/dmuy/duDialog@{version}/dist/duDialog.js
For production, use the minified version by adding .min to the file name (i.e. duDialog.min.js)
Note: Replace {version} with the version you want to use.
Copy duDialog.css and duDialog.js (or the minified versions *.min.js and *.min.css) in the dist folder and include in your app:
<link rel="stylesheet" type="text/css" href="{path-to}/duDialog.css">
<script type="text/javascript" src="{path-to}/duDialog.js"></script>Note: Replace {path-to} with the absolute or relative path to where you copied the css and js files.