diff --git a/src/declarations.ts b/src/declarations.ts index 9cb33dd..4b173c5 100644 --- a/src/declarations.ts +++ b/src/declarations.ts @@ -1,6 +1,7 @@ export * from '@stencil/core/internal'; +import {ProcessOptions} from "postcss" -export interface PluginOptions { +export interface PluginOptions extends Omit { injectGlobalPaths?: string[]; plugins?: any[]; } diff --git a/src/index.ts b/src/index.ts index 62437e0..ed40cef 100755 --- a/src/index.ts +++ b/src/index.ts @@ -30,6 +30,11 @@ export function postcss(opts: d.PluginOptions = {}): d.Plugin { return new Promise((resolve) => { postCss(renderOpts.plugins) .process(renderOpts.data, { + map: opts.map || undefined, + parser: opts.parser || undefined, + stringifier: opts.stringifier || undefined, + syntax: opts.syntax || undefined, + to: opts.to || undefined, from: fileName, }) .then((postCssResults) => {