Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add support for postcss-nested plugin
  • Loading branch information
mvsmal committed Jun 4, 2017
commit aaaf070d484906b3805022782a007456a30cdac8
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"postcss-modules-local-by-default": "^1.1.1",
"postcss-modules-parser": "^1.1.0",
"postcss-modules-scope": "^1.0.2",
"postcss-modules-values": "^1.2.2"
"postcss-modules-values": "^1.2.2",
"postcss-nested": "^2.0.2"
},
"description": "Transforms styleName to className using compile time CSS module resolution.",
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions src/requireCssModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import postcss from 'postcss';
import genericNames from 'generic-names';
import ExtractImports from 'postcss-modules-extract-imports';
import LocalByDefault from 'postcss-modules-local-by-default';
import Nested from 'postcss-nested';
import Parser from 'postcss-modules-parser';
import Scope from 'postcss-modules-scope';
import Values from 'postcss-modules-values';
Expand Down Expand Up @@ -66,6 +67,7 @@ export default (cssSourceFilePath: string, options: OptionsType): StyleModuleMap
};

const plugins = [
Nested,
Values,
LocalByDefault,
ExtractImports,
Expand Down