Skip to content

Commit 5832a39

Browse files
committed
remove warning for postcss 'from' option
1 parent 7d55eea commit 5832a39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/style-rewriter.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ module.exports = function (id, css, scoped, options) {
4646
return Promise.resolve(val)
4747
} else {
4848
var plugins = []
49-
var opts = {}
49+
var opts = { from: 'source' }
5050

5151
if (options.postcss instanceof Array) {
5252
plugins = options.postcss.slice()
5353
} else if (options.postcss instanceof Object) {
5454
plugins = options.postcss.plugins || []
5555
opts = options.postcss.options
56+
opts.from = opts.from || 'source'
5657
}
5758

5859
// scoped css rewrite

0 commit comments

Comments
 (0)