mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 03:12:35 +02:00
fix: fix PostCSS warning on build
command (#1664)
The warning is produced on `cssnano` call. See below: > Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning. Reproduction: ```shell mkdir work cd work npx docusaurus-init cd website yarn install yarn run build ``` Environments: - Node: 12.6.0 - Yarn: 1.17.3
This commit is contained in:
parent
bc5bceeb87
commit
d77f5538c2
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ function minifyCss(cssContent) {
|
||||||
.process(cssContent, {
|
.process(cssContent, {
|
||||||
preset: 'default',
|
preset: 'default',
|
||||||
zindex: false,
|
zindex: false,
|
||||||
|
from: undefined,
|
||||||
})
|
})
|
||||||
.then(result => result.css);
|
.then(result => result.css);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue