Reputation: 1683
Im trying to figure out how to setup my next.config.js file to use sass as well as exportPathMap, here is what I have:
module.exports = {
withSass() {},
exportPathMap: function() {
return {
'/': { page: '/' },
};
},
};
But it looks like the withSass() doesnt run, do I need to wrap the exportPathMap with withSass()?
Upvotes: 0
Views: 410
Reputation: 1894
I don't know about the exportPathMap
part, but withSass
should be use like this : (its an HoC)
module.exports = withSass({
exportPathMap: function() {
return {
'/': { page: '/' },
};
},
});
Upvotes: 3