You need to use a robots.txt
file.
User-agent: *
Disallow: /*.less$
Disallow: /*.js$
Or, instead of disallowing extensions, you can place all your static content into a directory and disallow that so it's more managable.
User-agent: *
Disallow: /static/
You can use Google Webmaster Tools
to validate your robots.txt file.