Skip to content

Commit

Permalink
fix: resolve inject css
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Sep 10, 2020
1 parent bd9d721 commit 6b1319e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/module.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { resolve } = require('path')
const { posix } = require('path')
const { GoogleFontsHelper } = require('google-fonts-helper')
const logger = require('./logger')

Expand Down Expand Up @@ -66,7 +66,7 @@ module.exports = function (moduleOptions) {
})

if (options.inject) {
this.options.css.push(resolve(outputDir, options.stylePath))
this.options.css.push(posix.resolve(outputDir, options.stylePath))
}
} catch (e) { /* istanbul ignore next */
logger.error(e)
Expand Down

0 comments on commit 6b1319e

Please sign in to comment.