Skip to content

Commit dcfbfbc

Browse files
kevinmarrecTheAlexLichter
authored andcommitted
feat: accept module options (#15)
1 parent 0481167 commit dcfbfbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/module.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { resolve } from 'path'
22

33
import pkg from '../package.json'
44

5-
export default function nuxtWebfontloader() {
6-
const { webfontloader: options } = this.options
5+
export default function nuxtWebfontloader(moduleOptions) {
6+
const options = { ...this.options.webfontloader, ...moduleOptions }
77

88
if (!options || !Object.keys(options).length) {
99
return

0 commit comments

Comments
 (0)