Skip to content

Commit 5ced9c0

Browse files
author
vasia
committed
fixes
1 parent 666e386 commit 5ced9c0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/compilers/postcss-compiler.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
const postcss = require('postcss');
22
const postcssrc = require('postcss-load-config')
3-
const throwError = require('../throw-error')
4-
53
const ctx = { parser: true, map: 'inline' }
4+
const { plugins } = postcssrc.sync(ctx)
65

7-
const { plugins, options } = postcssrc.sync(ctx)
8-
9-
console.log(options, 7777);
6+
const throwError = require('../throw-error')
107

118
module.exports = (content) => {
129
let css = null
1310

1411
postcss(plugins)
15-
.process(content, options || {})
12+
.process(content)
1613
.then(result => {
1714
css = result.css || ''
1815
})

0 commit comments

Comments
 (0)