Giter VIP home page Giter VIP logo

Comments (2)

SolidZORO avatar SolidZORO commented on July 28, 2024 1

I think you see the configuration here https://webpack.js.org/loaders/css-loader/#function-2

In this code snippet.

https://github.com/SolidZORO/next-plugin-antd-less/blob/master/index.js#L96-L115

You can see that the last line is auto: true and you can't override that with nextConfig.cssLoaderOptions.

Because this abc.less and abc.module.less naming convention is a best practice for css modules, and I'm not going to override auto.

So you can fork and change this configuration.


我想你是在这里看到配置的 https://webpack.js.org/loaders/css-loader/#function-2

在这个代码片段中:

https://github.com/SolidZORO/next-plugin-antd-less/blob/master/index.js#L96-L115

你可以看到,最后一行是 auto: true 而且你不能用 nextConfig.cssLoaderOptions 覆盖。

因为这 abc.lessabc.module.less 的命名方式是 css modules 的最佳实践,我不打算把 auto 覆盖掉。

所以你可以 fork 然后修改这个配置。

from next-plugin-antd-less.

sunhak-hout avatar sunhak-hout commented on July 28, 2024

@SolidZORO I didn't know the auto option is always set to true. Thanks for the reply. Really appreciate that :)

from next-plugin-antd-less.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.