From 22fb8698c5206e3c6e6b67a0121d6861a714ae31 Mon Sep 17 00:00:00 2001 From: Endi Date: Thu, 24 Oct 2019 12:25:10 +0700 Subject: [PATCH] feat(v2): postcss should only use stage 3 features instead of stage 2 (#1872) --- CHANGELOG-2.x.md | 1 + packages/docusaurus/src/webpack/utils.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG-2.x.md b/CHANGELOG-2.x.md index 2fb0f621f896..9958ddd680ce 100644 --- a/CHANGELOG-2.x.md +++ b/CHANGELOG-2.x.md @@ -4,6 +4,7 @@ - Add sticky footer. - Remove empty doc sidebar container +- PostCSS preset env now only polyfills Stage 3 features (previously it was stage 2) like Create React App. Stage 2 CSS is considered relatively unstable and subject to change while Stage 3 features will likely become a standard. ## 2.0.0-alpha.30 diff --git a/packages/docusaurus/src/webpack/utils.ts b/packages/docusaurus/src/webpack/utils.ts index d72fe218f612..c475b32158fb 100644 --- a/packages/docusaurus/src/webpack/utils.ts +++ b/packages/docusaurus/src/webpack/utils.ts @@ -54,6 +54,7 @@ export function getStyleLoaders( autoprefixer: { flexbox: 'no-2009', }, + stage: 3, }), ], },