Ignore 'styles.scss.cache' file for version control in a Vaadin 8.1 project?

ぃ、小莉子 提交于 2019-12-11 04:48:07

问题


After doing the first Maven install on my new Vaadin 8.1 project created from the vaadin-archetype-widget Maven archetype, and first running my app, I noticed a single new file appeared:

myproject-demo/src/main/webapp/VAADIN/themes/demo/styles.scss.cache

➠ Does it make sense to include or ignore this file from my version control?

By ignore, I mean add that filename to my list of file/folders to big ignored by my version control system. (.hgignore file)

If I intend to share this project as open-source, should I include this file to save a step during build? Or does it get rebuilt frequently, so it would be annoying with frequent changes and needlessly flag an irrelevant change, so I should ignore it?


Using Mercurial for version control.


回答1:


You can ignore styles.scss.cache. It is generated by the Vaadin servlet after it compiles your style for the first time. Cache entry is controlled by VaadinServlet on row 1107 and it will be good to let the server to create and invalidate this file when necessary.

On the fly compilation of SCSS works fine but if that turns out to be "too slow" you can compile your theme to flat styles.css file with maven. For example, Vaadin is compiling Valo theme into vaadin-themes library and you could do similar artefact from your theme. See Vaadin theme documentation for more details.



来源:https://stackoverflow.com/questions/46507725/ignore-styles-scss-cache-file-for-version-control-in-a-vaadin-8-1-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!