sleexyz / dir-loader

Dynamically require a directory in Webpack. Use Webpack as a CMS!
13 stars 5 forks source link

abstract from webpack #11

Closed sleexyz closed 9 years ago

sleexyz commented 9 years ago

js code generation.

(Isn't that what webpack does?)

Without

source -> webpack-generated-code -> client

With hypothetical code generator

source -> *hypothetical code generator* -> webpack-generated-code -> client

(Isn't that what val-loader does?)

Contentpack as a code-generation tool? To unify val-loaders?

Let's think content, as opposed to tools. I can only think of code-generation of being useful for dir-loader...

sleexyz commented 9 years ago

Lets avoid feature creep and keep this limited in scope contentpack will be a directory loader, but still be called contentpack, because dir-loader implies being a webpack loader, which it is not.