Skip to content

Commit

Permalink
Merge 17fa9dd into 2caa0bc
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 10, 2021
2 parents 2caa0bc + 17fa9dd commit 8cd7ba4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions example/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default {
future: {
// removeDeprecatedGapUtilities: true,
// purgeLayersByDefault: true,
},
purge: [],
theme: {
extend: {}
},
variants: {},
plugins: []
}
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = async function (moduleOptions) {
let tailwindConfig = {}
if (await pathExists(configPath)) {
clearModule(configPath)
tailwindConfig = require(configPath)
tailwindConfig = nuxt.resolver.requireModule(configPath)
logger.info(`Merging Tailwind config from ~/${relative(this.options.srcDir, configPath)}`)
}
// Merge with our default purgecss default
Expand Down

0 comments on commit 8cd7ba4

Please sign in to comment.