1

我正在导入 react-slick css 文件。当我cssModules:true从 next.config.js 文件中删除时,一切正常。知道为什么添加cssModules:true 会产生问题吗?

const withCSS = require("@zeit/next-css");
module.exports = withCSS({
  cssModules: true,
  webpack: config => {
    config.module.rules.push({
      test: /\.(eot|woff|woff2|ttf|svg|png|jpg|gif)$/,
      use: {
        loader: "url-loader",
        options: {
          limit: 100000,
          name: "[name].[ext]"
        }
      }
    });
    return config;
  }
});
4

0 回答 0