systemjs / plugin-css

CSS loader plugin
MIT License
92 stars 60 forks source link

Offer UMD build in npm package #97

Closed guifromrio closed 8 years ago

guifromrio commented 8 years ago

I wonder if you'd consider adding a simple prepublish script with something along the lines of:

umd css css.js dist/css.umd.js -c

This would allow people to use it in the browser directly, specially from sources like npmcdn.com.

I'm more than happy to submit a PR if this solution is OK. 🙂

guybedford commented 8 years ago

This project does load in the browser through SystemJS.. are you saying you'd want the script tag loading support for CSP style loading support?

guifromrio commented 8 years ago

@guybedford strange, I must have misconfigured something, then, because I was getting a exports is undefined type of error. Let me check again and I'll come right back. PS: It would also be good to have a minified version on npm, in any case :)

guifromrio commented 8 years ago

Ah, you are correct! It was misconfigured. :)

What about the minified version? That would be useful personally, but I understand if it's not a priority for the project.

guifromrio commented 8 years ago

Never mind, we can always come back to this discussion later if you want! :D