mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-03 16:46:12 +00:00
fix build
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@
|
||||
"index": "./src/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"antd": "^2.7.2",
|
||||
"antd": "^2.7.3",
|
||||
"classnames": "^2.2.5",
|
||||
"dva": "^1.1.0",
|
||||
"dva-loading": "^0.2.0",
|
||||
@@ -44,7 +44,7 @@
|
||||
"start": "dora --plugins \"proxy,webpack?publicPath=/,webpack-hmr,browser-history?index=/src/index.html\"",
|
||||
"dev": "dora --plugins \"webpack?publicPath=/,webpack-hmr,browser-history?index=/src/index.html\"",
|
||||
"lint": "eslint --fix --ext .js,.jsx src/components/layout",
|
||||
"build": "atool-build --publicPath /"
|
||||
"build": "atool-build"
|
||||
},
|
||||
"theme": "./src/theme.js",
|
||||
"standard": {
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
import './index.html'
|
||||
import dva from 'dva'
|
||||
|
||||
// 1. Initialize
|
||||
const app = dva()
|
||||
|
||||
// 2. Model
|
||||
app.model(require('./models/app'))
|
||||
|
||||
// 3. Router
|
||||
app.router(require('./router'))
|
||||
|
||||
// 4. Start
|
||||
app.start('#root')
|
||||
+2
-2
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Ant Design Admin</title>
|
||||
<link rel="stylesheet" href="/index.css" />
|
||||
<link rel="stylesheet" href="index.css" />
|
||||
<link rel="icon" href="https://t.alipayobjects.com/images/T1QUBfXo4fXXXXXXXX.png" type="image/x-icon">
|
||||
<!--[if lte IE 10]>
|
||||
<script
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<div id="root"></div>
|
||||
|
||||
<script src="/index.js"></script>
|
||||
<script src="index.js"></script>
|
||||
<script src="//at.alicdn.com/t/font_c4y7asse3q1cq5mi.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -11,7 +11,6 @@ const app = dva({
|
||||
})
|
||||
|
||||
// 2. Model
|
||||
|
||||
app.model(require('./models/app'))
|
||||
|
||||
// 3. Router
|
||||
|
||||
+1
-1
@@ -1,5 +1,4 @@
|
||||
const webpack = require('atool-build/lib/webpack')
|
||||
const path = require('path')
|
||||
|
||||
module.exports = function (webpackConfig, env) {
|
||||
webpackConfig.babel.plugins.push('transform-runtime')
|
||||
@@ -18,6 +17,7 @@ module.exports = function (webpackConfig, env) {
|
||||
}])
|
||||
} else {
|
||||
webpackConfig.babel.plugins.push('dev-expression')
|
||||
webpackConfig.entry = {index: './src/_index.js'}
|
||||
}
|
||||
|
||||
// Don't extract common.js and common.css
|
||||
|
||||
Reference in New Issue
Block a user