Comments (8)
Thanks @loganpowell :) I'm also indeed a And.D fan.
from rekit.
Thought so! Any tips/advice for how best to use ant.d with Rekit? Should we follow the Use in create-react-app workflow/process?
from rekit.
No dice on incorporation of ant.d?
from rekit.
Oh, sorry @loganpowell , I thought I answered your question.
Actually a Rekit app is just a normal React project, no special config needed. You can just follow the guide on https://ant.design/docs/react/getting-started . Or you can also refer to Rekit portal for the usage.
from rekit.
Great. So, just update the webpack.test.config.js file or the webpack-config.js file?
from rekit.
Also, following this tutorial (step 4) it looks like webpack-config.js
is using webpack1 syntax... should I be using that? I.e.:
// webpack*.config.js
const path = require('path');
const fs = require('fs');
const lessToJs = require('less-vars-to-js');
const themeVariables = lessToJs(fs.readFileSync(path.join(__dirname, './ant-theme-vars.less'), 'utf8'));
...
// webpack2.config.js
module: {
rules: [
...
{
test: /\.less$/,
use: [
{loader: "style-loader"},
{loader: "css-loader"},
{loader: "less-loader",
options: {
modifyVars: themeVariables
}
}
]
}
]
}
//webpack1.config.js
module: {
loaders: [
{
test: /\.less$/,
loader: 'style-loader!css-loader!less-loader',
query: {
modifyVars: themeVariables
}
},
...
]
}
from rekit.
HI, has anyone added antd to rekit?
Amazing work BTW.
from rekit.
@fgiarritiello Since Rekit app is based on create-react-app, you can follow https://ant.design/docs/react/use-with-create-react-app to add antd to a Rekit project. The only thing you need to be aware of is enable javascript for less-loader if you want to compile antd style locally:
{
test: /\.less$/,
use: [
{
loader: 'style-loader',
},
{
loader: 'css-loader',
options: { sourceMap: true },
},
{
loader: 'less-loader',
options: { sourceMap: true, javascriptEnabled: true },
},
],
},
As I know antd is widely used in Rekit projects.
from rekit.
Related Issues (20)
- rekit-studio can't launch success
- Memory leak when running Jest tests due to nock not restoring https global HOT 2
- High Severity Vulnerbility in Rekit-core HOT 4
- Cannot create app at first time
- Cant open rekit studio HOT 8
- Unable to create actions with redux-saga plugin HOT 3
- Templates in rekit 3? HOT 6
- 王老师好,为什么脚手架中的package.json不区分dependencies与devDependencies HOT 1
- rekit edit mode with vim HOT 1
- functional component generated tests does not wotk
- Build errors during global package install on Windows HOT 1
- Failed to load project data Request failed with status code 500 HOT 2
- npm install rekit-studio error HOT 1
- Win10 can not create first app
- testcase issue Cannot use import statement outside a module
- Update path? HOT 6
- Create an action for a class component through rekit3.0? HOT 6
- rekit create-plugin <plugin-name> rekit: error: argument "commandName": Invalid choice: create-plugin (choose from [create, list, install, uninstall, add, remove, rm, move, mv])
- Whether to consider supporting HashedModuleIdsPlugin by default HOT 1
- 通过rekit 初始化创建app,npm test报错
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 rekit.