Cognizant-CDE-Australia / generator-confit

Build-tool generator for current and future web.
https://odecee.github.io/generator-confit
Other
29 stars 3 forks source link

Include "CONFIT-GENERATED" tags in "extendable" files to allow Confit to update files without destroying dev changes #18

Closed uglow closed 8 years ago

uglow commented 8 years ago

Although Confit asks you if you want to overwrite a configuration file, if you've made changes to that file, it would be very easy for you to accidentally over-write those changes.

This is not a problem for the README.md file, which inserts "tags" into the generated file, so that if the file is re-generated, the generated content still ends up inside the tags, not affecting content outside of the tags.

The aim of this feature is to apply this same approach - introducing content tags - to other, important, generated files. For example, the Webpack.config.js file should have these tags, so that devs can extend it without it being overwritten.

uglow commented 8 years ago

Capability added - see PR #22