Skip to content

Commit

Permalink
docs: Update website for 5.0.5 (#1138)
Browse files Browse the repository at this point in the history
* Update all package versions
* Clean up console.log
* Remove prettier since the lint script in the main repo also lints the site
  • Loading branch information
ludofischer committed May 29, 2021
1 parent 9b3c54f commit 95d599f
Show file tree
Hide file tree
Showing 5 changed files with 466 additions and 504 deletions.
9 changes: 9 additions & 0 deletions site/docs/changelog.md
Expand Up @@ -12,6 +12,15 @@ All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.


## \[5.0.5] (2021-05-28)

#### Bug fixes

- Preserve alpha channel in color minification
- Check overlaps more exhaustively when merging rules
- Do not crash when the input CSS contains relative URLs


## \[5.0.4] (2021-05-21)

#### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion site/docusaurus.config.js
Expand Up @@ -93,7 +93,7 @@ module.exports = {
],
},
],
copyright: `Latest release v5.0.3 · Distributed under the MIT License.`,
copyright: `Latest release v5.0.5 · Distributed under the MIT License.`,
},
},
presets: [
Expand Down
9 changes: 4 additions & 5 deletions site/package.json
Expand Up @@ -13,11 +13,10 @@
"@docusaurus/preset-classic": "^2.0.0-beta.0",
"@monaco-editor/react": "^4.1.2",
"classnames": "^2.3.1",
"cssnano-preset-advanced": "^5.0.1",
"cssnano-preset-default": "^5.0.1",
"cssnano-preset-lite": "^2.0.0",
"postcss": "^8.2.15",
"prettier": "^2.2.1",
"cssnano-preset-advanced": "^5.1.2",
"cssnano-preset-default": "^5.1.2",
"cssnano-preset-lite": "^2.0.1",
"postcss": "^8.3.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-icons": "^4.2.0"
Expand Down
3 changes: 1 addition & 2 deletions site/src/components/editor/postcss_runner.js
Expand Up @@ -6,7 +6,6 @@ import { pkgnameToVarName } from '../../helper/naming';

export default (input, config) => {
const { plugins: nanoPlugins } = cssnanoPresetLite();
console.log(cssnanoPresetLite);
const postcssPlugins = [];
for (const plugin of nanoPlugins) {
const [processor, opts] = plugin;
Expand All @@ -20,7 +19,7 @@ export default (input, config) => {
}
return new Promise((resolve, reject) => {
postcss(postcssPlugins)
.process(input)
.process(input, { from: undefined })
.then((res) => resolve(res))
.catch((err) => reject(err));
});
Expand Down

0 comments on commit 95d599f

Please sign in to comment.