mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
b32763b9e3
fix: bug 🐞 ![image](https://user-images.githubusercontent.com/37728280/44520939-05929380-a704-11e8-9e7e-7acbc08c6d39.png)
14 lines
301 B
JavaScript
14 lines
301 B
JavaScript
/* eslint-disable */
|
|
const withLess = require('@zeit/next-less')
|
|
|
|
// fix: prevents error when .less files are required by node
|
|
if (typeof require !== 'undefined') {
|
|
require.extensions['.less'] = (file) => {}
|
|
}
|
|
|
|
module.exports = withLess({
|
|
lessLoaderOptions: {
|
|
javascriptEnabled: true,
|
|
},
|
|
})
|