docpad / docpad-plugin-raw

Copies all files in the `/raw` directory to `/out` without going through DocPad's generation process. Useful for files that cause out of memory/speed issues when placed in /files directory.
Other
2 stars 6 forks source link

Don't copy when in development environment. #4

Open Hypercubed opened 10 years ago

Hypercubed commented 10 years ago

Perhaps the best place to implement this suggestion (https://github.com/bevry/docpad/issues/762#issuecomment-34110539) is in this plugin. Basically when in development environment no files are copied but instead each raw source is added as "static" to the server.

ghost commented 10 years ago

@Hypercubed I suppose this feature is right around your niche. The best benefit is unnecessary writes to disk.

techdragon commented 10 years ago

@Hypercubed @kr1zmo Id like this exact feature but the exact opposite way, my main need for the raw plugin is to ensure that when I'm in development, my source maps are copied over into the output folder so that i don't have dozens of 404s in my browser while tinkering with stylesheets.

Could we perhaps make it just generally configurable ? at the moment, I'm just stepping around the 'build for prod' by using a separate config file for prod builds before deploying to s3.