Coder Social home page Coder Social logo

Comments (4)

njugray avatar njugray commented on May 1, 2024

css-modules 的问题是这样的, 在我们的最初的方案中, 默认是开启的, 但实践的过程中, 发现绝大多数的业务(内部真实场景)都没有这个需求, 所以默认不开启.

自定义 webpack 的问题, 目前的方案比较暴力(需要自定义一份完整的配置), 使用上确实不便. 接下来的迭代中会优化这个问题, 保持灵活自定义配置能力的同时, 简化部分配置项修改的难度, 比如通过参数定义开始 css-modules.

这部分内容欢迎参与讨论, 给我们提意见.

from beidou.

hoperyy avatar hoperyy commented on May 1, 2024

我们公司目前是通过 配置文件暴露 快捷 API 和 待 merge 的 webpack 配置项,解决通用脚手架使用灵活性的问题。仅供参考。

from beidou.

MinJieLiu avatar MinJieLiu commented on May 1, 2024

或者如同 dva 中脚手架 roadhog 一样,给一份简易的配置,以后脚手架升级成本就没那么大了。

from beidou.

njugray avatar njugray commented on May 1, 2024

默认开启 css-modules 会给不需要这个特性的使用者带来额外成本去关闭. 目前1.0版本中, beidou-webpack 供一份默认配置以供覆盖, 基本可以满足使用需要, 这个Issue先关闭, 如果有什么其他想法和建议, 可以再开issue一起讨论

from beidou.

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.