Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[!] (postcss plugin) Error: Inline JavaScript is not enabled. Is it set in your options? #110

Closed
und3f1ned opened this issue Jun 9, 2018 · 4 comments

Comments

@und3f1ned
Copy link

Hi! Error while importing LESS files. Which options? Where can I specify this options? Thanks.

@ghost
Copy link

ghost commented Aug 2, 2018

You can pass options to less by making use of the 'use' option:

postcss({
      extensions: ['.css', '.scss', '.less'],
      use : [
        'sass', 
        ['less', { javascriptEnabled: true }]
      ],
    }),

@baurine
Copy link

baurine commented Mar 18, 2020

You can pass options to less by making use of the 'use' option:

postcss({
      extensions: ['.css', '.scss', '.less'],
      use : [
        'sass', 
        ['less', { javascriptEnabled: true }]
      ],
    }),

Works for me, thanks!

@asherccohen
Copy link

Anyone encountered an issue with this? I added this configuration but somehow the option is not sent to less.

@aprezcuba24
Copy link

How can I do the same using microbundle-crl? I'm working in a project but I don't see any configuration file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants