Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update website for 5.0.5 #1138

Merged
merged 1 commit into from May 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe load this from package.json?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we could generate this.

},
},
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