How to update which files are watched in live preview

To update the files/folders watched in live preview, you’ll want to update which files are watched inside your Gruntfile.js

It may look something like the below

On line 11, you can add or remove file globs to be watched. So if I additionally wanted to watch all file changes to a new folder myNewFolder I would add 'myNewFolder/**/*.*' to the array of watched file globs. In the above example, line 11 would then become

files: ['myNewFolder/**/*.*', 'cards/**/*.*', 'config/**/*.*', 'pages/**/*.*', 'static/**/*.*', 'partials/**/*.*'],
1 Like