madebysource / lesshat

Smart LESS CSS mixins library.
lesshat.com
MIT License
2.19k stars 259 forks source link

Atom - Less Autocompile #175

Open morcegon opened 7 years ago

morcegon commented 7 years ago

When I import LessHat and save my .less file using less-autocompile plugin, the Atom return an error to me:

JavaScript evaluation error: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'". from (function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var r="[0, 0, 0, 0]";return r=r.replace(/^\[|\]$/g,"")})())

I tried to disable all the other plugins and a new installation of Atom, without preferences and plugins, but the error still show up.

This error only show when I import lesshat file, the others .less files was compiled normally.