mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-07 14:16:52 +08:00
antd ok
This commit is contained in:
parent
79334996bd
commit
a03f8db868
2
.gitignore
vendored
2
.gitignore
vendored
@ -34,3 +34,5 @@ Thumbs.db
|
||||
# *.tar.gz
|
||||
|
||||
node_modules/
|
||||
prd/
|
||||
dev/
|
||||
|
@ -1,8 +1,6 @@
|
||||
import React, { Component } from 'react'
|
||||
import Routes from './routes'
|
||||
import './styles/cs.scss'
|
||||
// import './styles/cs.less'
|
||||
console.log(55555)
|
||||
import './styles/index.scss'
|
||||
|
||||
class App extends Component {
|
||||
render() {
|
||||
|
@ -1,11 +1,12 @@
|
||||
import React from 'react'
|
||||
import { Button } from 'antd';
|
||||
import Header from '../../components/Header.js'
|
||||
|
||||
export default _ => {
|
||||
return (
|
||||
<acticle>
|
||||
<Header />
|
||||
<h3>首页3333</h3>
|
||||
<Button type="primary">Primary</Button>
|
||||
</acticle>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
@import '~antd/dist/antd.css';
|
||||
|
||||
html {
|
||||
body {
|
||||
border: 1px #F00 solid;
|
25677
dev/scripts/index.js
25677
dev/scripts/index.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,15 +0,0 @@
|
||||
body {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
|
||||
.app{
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
color: #444;
|
||||
text-align: center;
|
||||
margin: -70px 0 0;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=index.css.map*/
|
@ -1 +0,0 @@
|
||||
{"version":3,"file":"styles/index.css","sources":[],"mappings":";;;;;;;;;;;;;","sourceRoot":""}
|
@ -7,6 +7,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="yapi"></div>
|
||||
<script src="./dev/scripts/index.js"></script>
|
||||
<script src="./dev/index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
15
ykit.js
15
ykit.js
@ -1,15 +1,22 @@
|
||||
var path = require('path');
|
||||
|
||||
module.exports = {
|
||||
plugins: ['react', 'es6', 'antd'],
|
||||
devtool: 'cheap-source-map',
|
||||
config: {
|
||||
exports: [
|
||||
'./scripts/index.js',
|
||||
'./styles/index.css'
|
||||
'./index.js'
|
||||
],
|
||||
modifyWebpackConfig: function(baseConfig) {
|
||||
// edit ykit's Webpack configs
|
||||
// edit ykit's Webpack configs
|
||||
baseConfig.context = path.resolve(__dirname, "client");
|
||||
|
||||
baseConfig.module.loaders.push({
|
||||
test: /\.(sass|scss)$/,
|
||||
loader: 'style-loader!css-loader!sass-loader'
|
||||
});
|
||||
|
||||
baseConfig.watch = true;
|
||||
console.log(baseConfig)
|
||||
return baseConfig;
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user