From 5e40f23def39e44232986a76c0901871768ea43a Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Fri, 31 Jul 2020 09:59:40 -0400 Subject: [PATCH] docs: readme --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 19ceaa14..c0aeba3b 100644 --- a/README.md +++ b/README.md @@ -535,6 +535,7 @@ module.exports = { namedExport: true, exportLocalsConvention: 'camelCase', exportOnlyLocals: false, + type: 'full', }, }, }, @@ -1001,14 +1002,16 @@ module.exports = { }; ``` -### `icss` +##### `type` -Type: Boolean Default: `true` if `modules` are enabled, false otherwise +Type: `'full' | 'icss'` +Default: `'full'` -Enables/disables handling of the low level "Interoperable CSS" format for declaring -import and export dependencies between CSS and other languages. ICSS enables -CSS Module support, and is enabled automatically when `modules` are enabled. It -can also be enabled independently to allow other loaders to handle processing CSS modules. +Controls the level of compilation applied to the input styles. `'full'` handles class and id scoping and +`@value` values. `'icss'` will only compile the low level "Interoperable CSS" format for declaring +import and export dependencies between CSS and other languages. ICSS underpins +CSS Module support, and provides a low level syntax for other tools to +implement CSS-module variations of their own. **webpack.config.js**