You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add ability to add arbitrary postcss plugins (#100)
* Implemented support for extra postcss plugins
* Added test for extra postcss plugins
* Fixed eslint issues
* Another fix of eslint
* Fixed eslint
* Removed string type of FiletypeOptions
* Updated test to use latest syntax
* Updated flow to 0.48.0 to use $ReadOnlyArray
BREAKING CHANGE: Filetype is now an object with properties 'syntax' and 'plugins'
Copy file name to clipboardExpand all lines: README.md
+15-2
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,7 @@ NODE_ENV=production ./test
174
174
|---|---|---|
175
175
|`context`|Must match webpack [`context`](https://webpack.github.io/docs/configuration.html#context) configuration. [`css-loader`](https://github.com/webpack/css-loader) inherits `context` values from webpack. Other CSS module implementations might use different context resolution logic.|`process.cwd()`|
176
176
|`exclude`| a RegExp that will exclude otherwise included files e.g., to exclude all styles from node_modules `exclude: 'node_modules'`|
177
-
|`filetypes`|Configure [postcss syntax loaders](https://github.com/postcss/postcss#syntaxes) like sugerss, LESS and SCSS. ||
177
+
|`filetypes`|Configure [postcss syntax loaders](https://github.com/postcss/postcss#syntaxes) like sugerss, LESS and SCSS and extra plugins for them. ||
178
178
|`generateScopedName`|Refer to [Generating scoped names](https://github.com/css-modules/postcss-modules#generating-scoped-names)|`[path]___[name]__[local]___[hash:base64:5]`|
179
179
|`removeImport`|Remove the matching style import. This option is used to enable server-side rendering.|`false`|
180
180
|`webpackHotModuleReloading`|Enables hot reloading of CSS in webpack|`false`|
@@ -198,7 +198,20 @@ To add support for different CSS syntaxes (e.g. SCSS), perform the following two
0 commit comments