saurabhdaware / DEV-widget

Unofficial Widget/profile card for https://dev.to/

Home Page:https://dev-widget.netlify.com/create

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup a minifier in build

saurabhdaware opened this issue · comments

Currently, build/build.main.js only copy pastes content from src to dist and creates index.js for the entry point in ES6 imports. It would be better if we could minify card.component.mjs and card.style.mjs during the build.

Working on this.

v1.1.0 onwards you can use card.component.min.mjs from <script src="https://unpkg.com/dev-widget@1.1.0/dist/card.component.min.mjs" type="module"></script>