意外的标记 。 CSS与nextjs

时间:2019-02-25 10:53:50

标签: reactjs next.js

我对许多插件有相同的错误,如何解决?

image error

我的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
    }
})));

0 个答案:

没有答案