npm-assets icon indicating copy to clipboard operation
npm-assets copied to clipboard

Namespace assets?

Open mightypenguin opened this issue 9 years ago • 1 comments

If this is (or should be) intended to allow npm to handle static assets elegantly like bower, shouldn't this namespace the static dependencies?

i.e. instead of throwing everything into one big directly together, why not put the name of the module as the directory? This would possibly need to account for versions as well if you flattened the tree.

public/assets/<npm_module1>-0.0.1/logo.png public/assets/<npm_module2>-1.2.3/logo.png

Once a project get's to any size at all I would think you'd have filename conflicts almost guaranteed otherwise.

mightypenguin avatar Oct 13 '16 18:10 mightypenguin

Good idea, PR welcome - perhaps behind a flag though? Maybe --namespaced or something?

keithamus avatar Oct 13 '16 19:10 keithamus