Move comment out of code

This commit is contained in:
Arnaud Benhamdine 2018-08-28 16:36:58 +02:00 committed by 偏右
parent 43d623ca56
commit 4e642e6830

View File

@ -111,12 +111,11 @@ It's possible to configure webpack to load an alternate less file:
```ts
new webpack.NormalModuleReplacementPlugin( /node_modules\/antd\/lib\/style\/index\.less/, path.resolve(rootDir, 'src/myStylesReplacement.less') ),
Where the src/myStylesReplacement.less file loads the same files as the index.less file, but loads them within the scope of a top-level selector:
#antd { @import '~antd/lib/style/core/index.less'; @import '~antd/lib/style/themes/default.less'; }
```
Where the src/myStylesReplacement.less file loads the same files as the index.less file, but loads them within the scope of a top-level selector:
The result is that all of the "global" styles are being applied with the #antd scope.
### Use a postcss processor to scope all styles