Skip to content

Commit

Permalink
fix: misc fixes
Browse files Browse the repository at this point in the history
* avoid sourceRoot modification in MapModifier
* avoid <no source> source modification for sourcemaps
* proper error message for incorrect PostCSS options
* move ".sss" to the end of extensions list
* improved documentation
* remove position for PostCSS warnings at it is pointed to incorrect place anyway
  • Loading branch information
Anidetrix committed May 6, 2020
1 parent c7e6c41 commit a4d3924
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 129 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Default mode is `inject`, which means generated CSS will be injected into `<head

CSS is available as default export in `inject` and `extract` modes, but if [CSS Modules](https://github.com/css-modules/css-modules) are enabled you need to use named `css` export.

In `emit` mode none of the exports are available since it purely processes CSS and passes it along the build pipeline, which is useful if you only want to preprocess CSS for usage with CSS consuming plugins, i.e. [rollup-plugin-lit-css](https://github.com/bennypowers/rollup-plugin-lit-css)
In `emit` mode none of the exports are available since it purely processes CSS and passes it along the build pipeline, which is useful if you only want to preprocess CSS for usage with CSS consuming plugins, e.g. [rollup-plugin-lit-css](https://github.com/bennypowers/rollup-plugin-lit-css)

```js
// Injects CSS, also available as `style` in this example
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"postcss-value-parser": "^4.1.0",
"resolve": "^1.17.0",
"source-map": "^0.7.3",
"tslib": "^1.11.1"
"tslib": "^1.11.2"
},
"devDependencies": {
"@babel/core": "^7.9.6",
Expand Down Expand Up @@ -106,7 +106,7 @@
"node-sass": "^4.14.1",
"postcss-custom-properties": "^9.1.1",
"prettier": "^2.0.5",
"rollup": "^2.7.6",
"rollup": "^2.8.0",
"rollup-plugin-dts": "^1.4.0",
"rollup-plugin-lit-css": "^2.0.3",
"rollup-plugin-node-externals": "^2.1.6",
Expand All @@ -116,7 +116,7 @@
"shx": "^0.3.2",
"stylus": "^0.54.7",
"sugarss": "^2.0.0",
"ts-jest": "^25.4.0",
"ts-jest": "^25.5.0",
"typedoc": "^0.17.6",
"typescript": "^3.8.3"
},
Expand Down

0 comments on commit a4d3924

Please sign in to comment.