impact-node icon indicating copy to clipboard operation
impact-node copied to clipboard

Prevent overwriting index.html and styles.css on build

Open stahlmanDesign opened this issue 10 years ago • 2 comments

This is more of a feature request.

My problem is that I have some custom code in my styles.css and index.html and these get overwritten each time I build. Currently I keep a copy and then overwrite the build versions that were generated by impact-node.

Since it's rare to modify these files, there is no reason for impact-node to overwrite them each time. I suggest impact-node just generate them if they do not exist, or the on the initial project creation.

stahlmanDesign avatar May 06 '15 05:05 stahlmanDesign

Hi, sorry for delay. So you propose this: check for styles.css and index.html before build, if there's no one, then copy default file. Right?

roman01la avatar Jun 04 '15 12:06 roman01la

You don't want to just copy the files because the paths change due to the build that makes game.js

It's OK to generate the index.html and styles.css if none exist, but if they already exist in build, and are unchanged since last build, don't overwrite them with defaults. This is because I add some things to style.css and index.html in the build.

stahlmanDesign avatar Jun 04 '15 13:06 stahlmanDesign