├── .editorconfig ├── .gitattributes ├── .github └── workflows │ ├── ci.yml │ └── release.yml ├── .gitignore ├── .prettierrc.js ├── CHANGELOG-OLD.md ├── LICENSE ├── README.md ├── appveyor.yml ├── circle.yml ├── package.json ├── src ├── index.js ├── less-loader.js ├── loaders.js ├── postcss-loader.js ├── sass-loader.js ├── stylus-loader.js └── utils │ ├── humanlize-path.js │ ├── load-module.js │ └── normalize-path.js ├── test ├── __snapshots__ │ └── index.test.js.snap ├── fixtures │ ├── auto-modules │ │ ├── a.module.css │ │ ├── b.module.scss │ │ ├── c.module.less │ │ └── index.js │ ├── css-modules │ │ ├── index.js │ │ └── style.css │ ├── named-exports │ │ ├── index.js │ │ └── style.css │ ├── nested │ │ ├── bar.module.css │ │ ├── component.js │ │ ├── component.module.css │ │ ├── foo.css │ │ ├── index.js │ │ ├── nested.css │ │ └── nested.js │ ├── postcss-config │ │ ├── index.js │ │ ├── postcss.config.js │ │ └── style.sss │ ├── postcss-options │ │ ├── index.js │ │ └── style.css │ ├── sass-data-prepend │ │ ├── _prepend.scss │ │ ├── index.js │ │ └── style.scss │ ├── sass-import │ │ ├── _partial.scss │ │ ├── foo.scss │ │ ├── index.js │ │ ├── node_modules │ │ │ └── foo │ │ │ │ ├── bar │ │ │ │ ├── _partial.scss │ │ │ │ ├── a.scss │ │ │ │ ├── b.sass │ │ │ │ └── c.css │ │ │ │ └── package.json │ │ └── style.scss │ ├── sass-modules │ │ ├── index.js │ │ └── style.sass │ ├── sass │ │ ├── foo.sass │ │ └── index.js │ ├── simple │ │ ├── bar.css │ │ ├── foo.css │ │ ├── index.js │ │ ├── style.less │ │ ├── style.pcss │ │ ├── style.sass │ │ └── style.styl │ └── skip-loader │ │ ├── index.js │ │ └── style.css └── index.test.js ├── types └── index.d.ts └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /CHANGELOG-OLD.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/CHANGELOG-OLD.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/README.md -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/appveyor.yml -------------------------------------------------------------------------------- /circle.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/circle.yml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/package.json -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/src/index.js -------------------------------------------------------------------------------- /src/less-loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/src/less-loader.js -------------------------------------------------------------------------------- /src/loaders.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/src/loaders.js -------------------------------------------------------------------------------- /src/postcss-loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/src/postcss-loader.js -------------------------------------------------------------------------------- /src/sass-loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/src/sass-loader.js -------------------------------------------------------------------------------- /src/stylus-loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/src/stylus-loader.js -------------------------------------------------------------------------------- /src/utils/humanlize-path.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/src/utils/humanlize-path.js -------------------------------------------------------------------------------- /src/utils/load-module.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/src/utils/load-module.js -------------------------------------------------------------------------------- /src/utils/normalize-path.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/src/utils/normalize-path.js -------------------------------------------------------------------------------- /test/__snapshots__/index.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/__snapshots__/index.test.js.snap -------------------------------------------------------------------------------- /test/fixtures/auto-modules/a.module.css: -------------------------------------------------------------------------------- 1 | .foo { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/auto-modules/b.module.scss: -------------------------------------------------------------------------------- 1 | .b { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/auto-modules/c.module.less: -------------------------------------------------------------------------------- 1 | .c { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/auto-modules/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/auto-modules/index.js -------------------------------------------------------------------------------- /test/fixtures/css-modules/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/css-modules/index.js -------------------------------------------------------------------------------- /test/fixtures/css-modules/style.css: -------------------------------------------------------------------------------- 1 | .foo { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/named-exports/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/named-exports/index.js -------------------------------------------------------------------------------- /test/fixtures/named-exports/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/named-exports/style.css -------------------------------------------------------------------------------- /test/fixtures/nested/bar.module.css: -------------------------------------------------------------------------------- 1 | .bar { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/nested/component.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/nested/component.js -------------------------------------------------------------------------------- /test/fixtures/nested/component.module.css: -------------------------------------------------------------------------------- 1 | .box { 2 | color: blue; 3 | } -------------------------------------------------------------------------------- /test/fixtures/nested/foo.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/nested/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/nested/index.js -------------------------------------------------------------------------------- /test/fixtures/nested/nested.css: -------------------------------------------------------------------------------- 1 | a { 2 | font-weight: bold; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/nested/nested.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/nested/nested.js -------------------------------------------------------------------------------- /test/fixtures/postcss-config/index.js: -------------------------------------------------------------------------------- 1 | import './style.sss' 2 | -------------------------------------------------------------------------------- /test/fixtures/postcss-config/postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | parser: 'sugarss' 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/postcss-config/style.sss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/postcss-config/style.sss -------------------------------------------------------------------------------- /test/fixtures/postcss-options/index.js: -------------------------------------------------------------------------------- 1 | import './style.css' 2 | -------------------------------------------------------------------------------- /test/fixtures/postcss-options/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | display: flex; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/sass-data-prepend/_prepend.scss: -------------------------------------------------------------------------------- 1 | $special-color: pink; 2 | -------------------------------------------------------------------------------- /test/fixtures/sass-data-prepend/index.js: -------------------------------------------------------------------------------- 1 | import './style.scss' 2 | -------------------------------------------------------------------------------- /test/fixtures/sass-data-prepend/style.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/sass-data-prepend/style.scss -------------------------------------------------------------------------------- /test/fixtures/sass-import/_partial.scss: -------------------------------------------------------------------------------- 1 | $color: magenta; 2 | -------------------------------------------------------------------------------- /test/fixtures/sass-import/foo.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/sass-import/foo.scss -------------------------------------------------------------------------------- /test/fixtures/sass-import/index.js: -------------------------------------------------------------------------------- 1 | import './style.scss' 2 | -------------------------------------------------------------------------------- /test/fixtures/sass-import/node_modules/foo/bar/_partial.scss: -------------------------------------------------------------------------------- 1 | $color: magenta 2 | -------------------------------------------------------------------------------- /test/fixtures/sass-import/node_modules/foo/bar/a.scss: -------------------------------------------------------------------------------- 1 | .a { 2 | color: pink; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/sass-import/node_modules/foo/bar/b.sass: -------------------------------------------------------------------------------- 1 | .b 2 | color: red 3 | -------------------------------------------------------------------------------- /test/fixtures/sass-import/node_modules/foo/bar/c.css: -------------------------------------------------------------------------------- 1 | .c { 2 | color: black; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/sass-import/node_modules/foo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "foo" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/sass-import/style.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/sass-import/style.scss -------------------------------------------------------------------------------- /test/fixtures/sass-modules/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/sass-modules/index.js -------------------------------------------------------------------------------- /test/fixtures/sass-modules/style.sass: -------------------------------------------------------------------------------- 1 | .foo 2 | color: red 3 | -------------------------------------------------------------------------------- /test/fixtures/sass/foo.sass: -------------------------------------------------------------------------------- 1 | #sidebar 2 | width: 30% 3 | background-color: #faa 4 | -------------------------------------------------------------------------------- /test/fixtures/sass/index.js: -------------------------------------------------------------------------------- 1 | import './foo.sass' 2 | -------------------------------------------------------------------------------- /test/fixtures/simple/bar.css: -------------------------------------------------------------------------------- 1 | .bar { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/simple/foo.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/simple/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/simple/index.js -------------------------------------------------------------------------------- /test/fixtures/simple/style.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/simple/style.less -------------------------------------------------------------------------------- /test/fixtures/simple/style.pcss: -------------------------------------------------------------------------------- 1 | .pcss { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/simple/style.sass: -------------------------------------------------------------------------------- 1 | #sidebar 2 | width: 30% 3 | background-color: #faa 4 | -------------------------------------------------------------------------------- /test/fixtures/simple/style.styl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/fixtures/simple/style.styl -------------------------------------------------------------------------------- /test/fixtures/skip-loader/index.js: -------------------------------------------------------------------------------- 1 | import './style.css' 2 | -------------------------------------------------------------------------------- /test/fixtures/skip-loader/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/test/index.test.js -------------------------------------------------------------------------------- /types/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/types/index.d.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egoist/rollup-plugin-postcss/HEAD/yarn.lock --------------------------------------------------------------------------------