While doing build work, I often open up dist/assets/vendor.js or dist/assets/vendor.css to inspect the contents (to confirm I didn't make any mistakes etc). It would be very convenient if we added delimiters surrounding each file that we concat.
Concretely, I am proposing:
- Add support for a
fileDelimeters option. A few special values could be used for substitution (e.g. {{FILE_PATH}} would be the path of the file being added).
- Possible usage example:
fileDelimeters: ['\n/* BEGIN {{FILE_PATH}} */', '\n/* END {{FILE_PATH}} */']
- Default to "do nothing" (which means the built asset would be identical)
- Update ember-cli to specify the
fileDelimeters option in non-production builds.
Thoughts?
While doing build work, I often open up
dist/assets/vendor.jsordist/assets/vendor.cssto inspect the contents (to confirm I didn't make any mistakes etc). It would be very convenient if we added delimiters surrounding each file that we concat.Concretely, I am proposing:
fileDelimetersoption. A few special values could be used for substitution (e.g.{{FILE_PATH}}would be the path of the file being added).fileDelimeters: ['\n/* BEGIN {{FILE_PATH}} */', '\n/* END {{FILE_PATH}} */']fileDelimetersoption in non-production builds.Thoughts?