question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrap @import to ignore

See original GitHub issue

Hi, I want to ignore a package that is importing from node_modules. What can i do about it? I tried 2 ways: First one:

/*rtl:begin:ignore*/
@import '~leaflet/dist/leaflet.css';
/*rtl:begin:ignore*/

And second one:

@import '~@assets/css/begin-rtl-ignore.css';
@import '~leaflet/dist/leaflet.css';
@import '~@assets/css/end-rtl-ignore.css';

But neither works! any solution?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mhrabieecommented, Sep 5, 2020

@mhrabiee How did you import postcss-rtl at nuxt.config.js? Please share it.

dadash kheili giram 😃)

@hbsoftco

npm i postcss-rtl --save-dev

nuxt.config.js

  build: {
    /*
     ** You can extend webpack config here
     */
    postcss: {
      plugins: {
        'postcss-rtl': {}
      }
    }
  }
2reactions
hbsoftcocommented, Sep 4, 2020

@mhrabiee How did you import postcss-rtl at nuxt.config.js? Please share it.

dadash kheili giram 😃)

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESLint should adhere to ignore rules that wrap import ... - GitHub
The problem you want to solve. // eslint-disable-next-line const module = import('./foo.js');.
Read more >
Disable wrapping imports on right margin in Intellij
I'm using Intellij IDEA 2017.2.1 and Intellij is wrapping my import statements on the right margin when I optimize the imports.
Read more >
Configuration options for isort
--skip-gitignore. Line Length. The max length of an import line (used for wrapping long imports). Type: Int Default: 79
Read more >
textwrap — Text wrapping and filling — Python 3.11.1 ...
Lines containing only whitespace are ignored in the input and normalized to a single newline character in the output. For example: def test():...
Read more >
imports-loader - webpack
The imports loader allows you to use modules that depend on specific global ... type; imports; wrapper; additionalCode ... Disable AMD Import Syntax....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found