This commit is contained in:
zwjamnsss 2017-07-05 21:08:51 +08:00
parent 79334996bd
commit a03f8db868
10 changed files with 20 additions and 25704 deletions

2
.gitignore vendored
View File

@ -34,3 +34,5 @@ Thumbs.db
# *.tar.gz
node_modules/
prd/
dev/

View File

@ -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() {

View File

@ -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>
)
}
}

View File

@ -1,3 +1,5 @@
@import '~antd/dist/antd.css';
html {
body {
border: 1px #F00 solid;

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -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*/

View File

@ -1 +0,0 @@
{"version":3,"file":"styles/index.css","sources":[],"mappings":";;;;;;;;;;;;;","sourceRoot":""}

View File

@ -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
View File

@ -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;
}
},