Skip to content

Atom - Less Autocompile #175

@morcegon

Description

@morcegon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions