Skip to content

Latest commit

 

History

History
83 lines (61 loc) · 1.95 KB

README.example.md

File metadata and controls

83 lines (61 loc) · 1.95 KB

package name here

tests types module semantic versioning Common Changelog install size dependencies license

<package description goes here>

See a live demo

Contents

install

Installation instructions

npm i -S @namespace/package

API

This exposes ESM and common JS via package.json exports field.

ESM

import '@namespace/package/module'

Common JS

require('@namespace/package/module')

CSS

Import CSS

import '@namespace/package-name/css'

Or minified:

import '@namespace/package-name/css/min'

Customize CSS via some variables

component-name {
    --example: pink;
}

use

usage instructions here

JS

import '@namespace/package/module'

pre-built JS

This package exposes minified JS files too. Copy them to a location that is accessible to your web server, then link to them in HTML.

copy

cp ./node_modules/@namespace/package/dist/module.min.js ./public

HTML

<script type="module" src="./module.min.js"></script>