antonmedv / finder

CSS Selector Generator 🗺
MIT License
1.36k stars 96 forks source link

Provision of js version to download and consume it in html files #28

Closed shivarajnaidu closed 4 years ago

shivarajnaidu commented 5 years ago

Providing js variant to use it in static pages will be helpful to many . please consider including it in repo or some kind of CDN link will be helpful

antonmedv commented 5 years ago

Will do later. Now you can use http://unpkg.com/@medv/finder but use exports.

shivarajnaidu commented 5 years ago

Thank you for the workaround

zachdev commented 5 years ago

Will do later. Now you can use http://unpkg.com/@medv/finder but use exports.

This doesn't seem to work due to the require("cssesc");.

antonmedv commented 5 years ago

Yes you are right

sabatale commented 4 years ago

Did you get a chance to do this one?

antonmedv commented 4 years ago

Nope. Maybe ES module version will be enough?

antonmedv commented 4 years ago

Now with v2 will be working!

<script type="module">
  import {finder} from 'https://medv.io/finder/finder.js'
</script>