// next.config.js
const withLess = require('@zeit/next-less')
module.exports = withLess({})
// _app.jsx
import 'github-markdown-css/github-markdown.css'
// import 'highlight.js/styles/color-brewer.css'
import '../assets/main.less'
[ error ] ./node_modules/github-markdown-css/github-markdown.css 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
How should I configure it ?
Oh, I get it.
// next.config.js
const withCss = require('@zeit/next-css')
const withLess = require('@zeit/next-less')
module.exports = withLess(withCss())
Most helpful comment
Oh, I get it.