Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
feat: css preprocess options (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
Day authored Jun 4, 2020
1 parent 7cd7446 commit f8a7254
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface Options {
// sfc style options
preprocessCustomRequire?: SFCAsyncStyleCompileOptions['preprocessCustomRequire']
cssModulesOptions?: SFCAsyncStyleCompileOptions['modulesOptions']
preprocessOptions?: SFCAsyncStyleCompileOptions['preprocessOptions']
}

const defaultOptions: Options = {
Expand Down Expand Up @@ -191,6 +192,7 @@ export default function PluginVue(userOptions: Partial<Options> = {}): Plugin {
? (block.lang as any)
: undefined,
preprocessCustomRequire: options.preprocessCustomRequire,
preprocessOptions: options.preprocessOptions || {},
})

if (result.errors.length) {
Expand Down

0 comments on commit f8a7254

Please sign in to comment.