saurabhdaware/DEV-widget

Setup a minifier in build

saurabhdaware opened this issue · 2 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>