Skip to main content
20 votes
Accepted

LiveReload configuration via Grunt

It's been two days since the post is open and no one has found the answer to my question, and working hard on this topic I finally found the solution. So I decided to publish the complete solution, ...
PЯINCƎ's user avatar
  • 11.7k
2 votes

Magento 2 - How to allow livereload in CSP whitelist?

Check out this extension: https://github.com/ghostunicorns/module-csp-livereload How to install: composer require ghostunicorns/module-csp-livereload Cheers
Danilo Argentiero's user avatar
1 vote

Magento 2 - How to allow livereload in CSP whitelist?

Create csp_whitelist.xml path: app/code/Sample/Module/etc/csp_whitelist.xml If your livereload connects to ws://127.0.0.1:35729/livereload it should be this: <csp_whitelist xmlns:xsi="http://...
Vince Verhoeven's user avatar
1 vote

Magento 2 - How to allow livereload in CSP whitelist?

I had the same issue, and fixed it with the following: Create a plugin app/code/Company/Csp/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
Toine H's user avatar
  • 171
1 vote
Accepted

Grunt, .less, and Live Reload - Can't get them working

Thank you both for your replies! The problem was in my theme.js file - the file grunt-config.json points to. Here is the contents of grunt-config.json: { "themes": "dev/tools/grunt/configs/local-...
AdamJSim's user avatar
  • 103
1 vote

Grunt, .less, and Live Reload - Can't get them working

Try this grunt --force clean:porto && php bin/magento dev:source-theme:deploy css/styles-m css/styles-l --type=less --locale=en_US --area=frontend --theme=Magento/luma --theme=Smartwave/porto grunt ...
Sanju's user avatar
  • 565

Only top scored, non community-wiki answers of a minimum length are eligible