我对许多插件有相同的错误,如何解决?
我的next.config.js
const withCSS = require('@zeit/next-css');
const withSass = require('@zeit/next-sass');
const withLess = require('@zeit/next-less');
// const nextConfig = require('next/webpack.config')
module.exports = withLess(withSass(withCSS({
webpack: config => {
// Fixes npm packages that depend on `fs` module
config.node = {
fs: 'empty'
};
config.module.rules.push({ test: /\.(png|woff|woff2|eot|ttf|svg|gif)$/, loader: 'url-loader?limit=100000' });
return config
}
})));