Sails.js less load on the liver with hours without work

I got fewer files compiled in css perfectly, grunt, and I see the result in .tmp / public / styles
So, now livereload with grunt-contrib-watch should be done naturally in a project created by sails?
Or do I need to make a special configuration?

I found that in the tasks / pipeline.js file, but not sure what to do.

// CSS files to inject in order // // (if you're using LESS with the built-in default config, you'll want // to change `assets/styles/importer.less` instead.) var cssFilesToInject = [ 'styles/**/*.css' ]; 

I saw in the task file /README.md :

 ###### `sails lift` Runs the `default` task (`tasks/register/default.js`). 

And in the default.js file we got:

 module.exports = function (grunt) { grunt.registerTask('default', ['compileAssets', 'linkAssets', 'watch']); }; 

But the watch.js file is missing in the folder ...
What should it be?

+1
source share
1 answer

The watch only looks at files that have been changed and run less, sass, injection, etc. - but it does not reboot.

You can add this to task/config/watch.js

0
source

All Articles