Skip to content

Commit

Permalink
feat: accept module options (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmarrec authored and manniL committed Apr 23, 2019
1 parent 0481167 commit dcfbfbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/module.js
Expand Up @@ -2,8 +2,8 @@ import { resolve } from 'path'

import pkg from '../package.json'

export default function nuxtWebfontloader() {
const { webfontloader: options } = this.options
export default function nuxtWebfontloader(moduleOptions) {
const options = { ...this.options.webfontloader, ...moduleOptions }

if (!options || !Object.keys(options).length) {
return
Expand Down

0 comments on commit dcfbfbc

Please sign in to comment.