Comments (1)
是我的项目代码配置的问题,
module: { loaders: [{ test: /\.js$/, exclude: /node_modules/, query: {compact: false}, loader: 'babel-loader' }, { test: /\.less$/, include: /node_modules/, //loader: extractCSS.extract(['css', 'postcss', 'sass',
less?{modifyVars:${JSON.stringify(theme)}}]) loader:
style!css!postcss!less?{modifyVars:${JSON.stringify(theme)}}, }, { test: /\.scss$/, // loader: "style-loader!css-loader!postcss-loader!sass-loader" loader: extractCSS.extract(['css', 'postcss', 'sass']) }, { test: /\.css$/, loaders: "style-loader!css-loader!postcss-loader" }, { test: /\.png$|\.jpg$/, loader: "base64-image" }] },
这种配置对less的预编译部分,是将编好的css放在html文件里,而项目里面sass编写的样式是打包进了css文件,所以自定义的样式被覆盖了
from antd-init.
Related Issues (20)
- 静态数据不加载,不知道如何调试 HOT 1
- How to use webpack2 customized the antd theme and icon url. HOT 4
- antd主题切换 HOT 3
- 自定义主题后,pagination组件按钮样式异常
- theme:导入报错小细节
- theme:导入报错小细节 HOT 1
- build后报错,该如何解决
- 如果我用的脚手架不是antd-init 和 dva-cli呢?该怎么处理? HOT 1
- 如何针对不同的entry做不同的modifyVars HOT 2
- 自定义iconfont路径只能用绝对路径? HOT 2
- 如何获取Icon的style值以及动态的改变style?
- 使用 parceljs ,本地部署 Iconfont 失败
- 想问下,不想修改整个主题,只想要修改某个组件的样式应该怎么做? HOT 1
- 在antd-pro中使用图标本地化时,报错
- Invalid setting font-family HOT 1
- my theme does not change help
- Translate this example to english
- 请问如果使用package.theme来自定义iconfont的路径无效,可以参考这个解决方案。
- 提错地方了,请无视 HOT 4
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 antd-init.