Skip to content

Commit

Permalink
fix(types): add functions and arrays for plugins (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored and kevinmarrec committed Dec 2, 2019
1 parent 970b9fd commit 748b465
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/types/config/build.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { VueLoaderOptions } from 'vue-loader'
import {
Configuration as WebpackConfiguration,
Loader as WebpackLoader,
loader as WebpackLoaderNamespace,
Options as WebpackOptions,
Plugin as WebpackPlugin
} from 'webpack'
Expand Down Expand Up @@ -114,7 +115,7 @@ interface PostcssConfiguration {
order?: PostcssOrderPreset | string[] | ((names: string[], presets: PostcssOrderPresetFunctions) => string[])
plugins?: {
[key: string]: false | { [key: string]: any }
}
} | ((loader: WebpackLoaderNamespace.LoaderContext) => PostcssPlugin[]) | Array<[string | PostcssPlugin, any] | string | PostcssPlugin>
preset?: {
autoprefixer?: false | AutoprefixerOptions
browsers?: string
Expand Down

0 comments on commit 748b465

Please sign in to comment.