Comments (4)
css-modules
的问题是这样的, 在我们的最初的方案中, 默认是开启的, 但实践的过程中, 发现绝大多数的业务(内部真实场景)都没有这个需求, 所以默认不开启.
自定义 webpack
的问题, 目前的方案比较暴力(需要自定义一份完整的配置), 使用上确实不便. 接下来的迭代中会优化这个问题, 保持灵活自定义配置能力的同时, 简化部分配置项修改的难度, 比如通过参数定义开始 css-modules
.
这部分内容欢迎参与讨论, 给我们提意见.
from beidou.
我们公司目前是通过 配置文件暴露 快捷 API 和 待 merge 的 webpack 配置项,解决通用脚手架使用灵活性的问题。仅供参考。
from beidou.
或者如同 dva
中脚手架 roadhog 一样,给一份简易的配置,以后脚手架升级成本就没那么大了。
from beidou.
默认开启 css-modules 会给不需要这个特性的使用者带来额外成本去关闭. 目前1.0版本中, beidou-webpack 供一份默认配置以供覆盖, 基本可以满足使用需要, 这个Issue先关闭, 如果有什么其他想法和建议, 可以再开issue一起讨论
from beidou.
Related Issues (20)
- 路由错误最小复现
- 招贤纳士
- v2.2.1版本修改factory.getPlugin返回值无效 HOT 1
- with-dva 项目运行警告
- with-dva 在官方demo 修改成路由的模式
- 如何使用app.injectCsrf和app.injectNonce HOT 1
- Build framework on the top of Beidou HOT 2
- npm包版本问题
- 关于设置alias,出现Debug下无法加载资源
- ReactDOM.hydrate会覆盖服务端渲染结果,如果注释,相关事件就无效。如何处理? HOT 2
- facebook分享报206 HOT 4
- client获取controller数据 HOT 2
- 请问现在beidou还更新吗,有更好的解决方案了吗? HOT 2
- NODE_LOG_DIR not configured HOT 1
- typescript模板打包报错 HOT 3
- with-react-loadable 無法載入 HOT 1
- webpack 服务是否可以支持https
- 继续升级,作者继续啊
- 从零开始搭建应用 无法启动 HOT 3
- 主进程会偶尔收到SIGTERM信号导致程序exit HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beidou.