Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
fix: Fix postCSS error "without 'from' option" (#1118)
Browse files Browse the repository at this point in the history
The error: `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 w
arning.`
  • Loading branch information
orblazer authored and nchanged committed Feb 20, 2018
1 parent 8d8ef5a commit 0ee1cc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/vue/VueStyleFile.ts
Expand Up @@ -26,7 +26,8 @@ export class VueStyleFile extends VueBlockFile {
];

return postcss(plugins).process(this.contents, {
map: false
map: false,
from: this.file.info.absPath
}).then((result) => {
this.contents = result.css;
});
Expand Down

0 comments on commit 0ee1cc7

Please sign in to comment.