From 623b4f78a9351e3c3b0182909900f218f3602599 Mon Sep 17 00:00:00 2001 From: Erwann Mest Date: Tue, 25 Apr 2017 16:13:55 +0200 Subject: [PATCH] docs(readme): update import part MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gosh, I spent so much time understanding why I was able to compose a class with an internal class but not an external class in my css moduled style files. I wanted to disable "import" because I didn't want that people use "@import" in the css files and wanted them make it importing via javascript like this: ```javascript import '~/styles/index.css' import styles from './index.css' ``` *BUT* disabling "import" option makes unavailable the fact to import external class in css-modules `composes` feature. 😒😒😒😒 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d19bd58f..05858e5e 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,7 @@ To disable `@import` resolving by `css-loader` set the option to `false` @import url('https://fonts.googleapis.com/css?family=Roboto'); ``` -> :waning: Use with caution, since this disables resolving for **all** `@import`s +> :waning: Use with caution, since this disables resolving for **all** `@import`s, including css modules `composes: xxx from 'path/to/file.css'` feature. ### [`modules`](https://github.com/css-modules/css-modules)