rollup / awesome

⚡️ Delightful Rollup Plugins, Packages, and Resources
MIT License
2.55k stars 139 forks source link

Add rollup-plugin-smart-asset #12

Closed sormy closed 5 years ago

sormy commented 5 years ago

Awesome Contribution Checklist:

Please Describe Your Addition

rollup-plugin-smart-asset plugin

sormy commented 5 years ago

Hi, any news?

sormy commented 5 years ago

ping

shellscape commented 5 years ago

Hey @sormy apologies for the late response. But thanks for the PR :beer:

I feel that your README needs some more information, and could be clearer to a reader looking at the awesome list. The term rebase isn't really used often in Node path manipulation, and users could easily confuse that with git rebase (which is what I thought it was doing initially). I had to go read the tests to get a clear understanding of what was going on. Some "before and after" results in the readme would be very helpful to users. And I would encourage you to choose something other than rebase for a descriptor. Perhaps "changes the base directory of an import, export, or require statement"

sormy commented 5 years ago

Well. CSS rebase is well known term in web dev: https://www.google.com/search?q=rebase+css+assets

Two other plugins can also do some things that this plugin can do and they have references to "rebase":

This plugin is similar to "https://www.npmjs.com/package/postcss-smart-asset" that has also the same modes as this plugin, including "rebase" mode.

By the way I will update the PR and description to make description more clear.