rotundasoftware / parcelify

Add css to your npm modules consumed with browserify.
MIT License
251 stars 20 forks source link

filename defaults #2

Closed max-mapper closed 10 years ago

max-mapper commented 10 years ago

cool module! a suggestion:

instead of requiring "style" : [ "*.css" ] etc can you default to index.css and index.tmpl? basically make the simple case as simple as possible and leave the configuration to more complex cases

dgbeck commented 10 years ago

Hi @maxogden , so we are going to hold off on this for now. This is not just an internal parcelify issue but actually deals with the way that style assets are specified in package.json. We don't really control this.. we are just piggy packing on an emerging convention, and we don't want to rock the boat. Also it introduces some complexity because right now a package.json is required in order for parcelify to recognize a directory as a package, but this would raise a question as to weather or not a index.css by itself in a folder should be considered a package for parcelify's purposes. So no go for now, but that you for your feedback!