tasko-frontend/next.config.js

9 lines
426 B
JavaScript
Raw Normal View History

2020-01-13 12:54:17 +01:00
const withCSS = require('@zeit/next-css')
module.exports = withCSS({
2020-01-13 16:20:19 +01:00
cssModules: false
})
// Fixes npm packages that depend on `fs` module
// Great many thank to Mohammed Alrefai for making this work https://spectrum.chat/next-js/general/how-to-properly-load-font-awesome-pro-into-a-next-js-application~56b0396d-8b7d-447d-9f46-24ba6192936e
const nextConfig = { webpack: config => ({ ...config, node: { fs: 'empty' } }) }