CSS changes doesn't seem to be applied
With VIMP 4.1 CSS and JS files are being concatenated to reduce the number of server requests.
In order to apply your changes in the CSS files (e.g. style.css) you need to execute the following steps:
- Login to your server via SSH
- Change into the templates/ directory
- Execute npm run build
- Change into the VIMP root directory (cd ..)
- Execute ./symfony cc to clear the cache
If npm is not installed yet on your server, please refer to this article.
In case you have a custom template or custom CSS or JS files that should be concatenated as well, please open the Grunt file (Grunfile.js) within the templates folder before running the npm command and add new lines for your own template or your own CSS files analogous to the pacific and atlantic directives.
Changes in the skin files (for example business.css) are not concatenated and override CSS rules of style.css. Thus, when you edit a skin CSS file, you do not need to perform the above steps.
Last update on 2021/01/11 by Admin.