You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.
When starting the punch server with 'punch s', if there is a syntax error in config.json a warning is given and punch falls back on the default config:
Cannot read the custom config: Error: ENOENT, stat 'config'
Using the default config.
However if you introduce a syntax error to config.json whilst developing the site you may end up with a different error that obfuscates the real problem somewhat. For example a missing comma in a stylesheet bundle might give 'Error: Content for combined.css not found'.
I'm not sure which config punch then uses, does it continue to use the custom config, or immediately fall back on the default?
It might me better not to fall back on the default config at all, ever, since a single error in config.json could cause multiple customisations to stop working, not just the one with the syntax error, again somewhat masking the real issue.
The text was updated successfully, but these errors were encountered:
When starting the punch server with 'punch s', if there is a syntax error in config.json a warning is given and punch falls back on the default config:
However if you introduce a syntax error to config.json whilst developing the site you may end up with a different error that obfuscates the real problem somewhat. For example a missing comma in a stylesheet bundle might give 'Error: Content for combined.css not found'.
I'm not sure which config punch then uses, does it continue to use the custom config, or immediately fall back on the default?
It might me better not to fall back on the default config at all, ever, since a single error in config.json could cause multiple customisations to stop working, not just the one with the syntax error, again somewhat masking the real issue.
The text was updated successfully, but these errors were encountered: