Skip to content

Installation

Dionlee Uy edited this page Oct 2, 2020 · 3 revisions

NPM

Install via npm:

npm i @dmuy/dialog

Include in your app

import '@dmuy/dialog/dist/duDialog.css'
import duDialog from '@dmuy/dialog'

CDN

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.

Self Hosting

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.

Clone this wiki locally