diff --git a/.roadhogrc b/.webpackrc similarity index 85% rename from .roadhogrc rename to .webpackrc index 10b47806f47b7f847e952d8f390c9fd92c95f8fb..2aeef9d6ca671649c3d0a7e6656fe3aeaf094b6c 100755 --- a/.roadhogrc +++ b/.webpackrc @@ -1,9 +1,7 @@ { "entry": "src/index.js", "extraBabelPlugins": [ - "transform-runtime", "transform-decorators-legacy", - "transform-class-properties", ["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }] ], "env": { @@ -15,5 +13,8 @@ }, "ignoreMomentLocale": true, "theme": "./src/theme.js", + "html": { + "template": "./src/index.ejs" + }, "hash": true } diff --git a/package.json b/package.json index 3267b3dcee339cc99d8c93b942d7b5a67bd0c2e1..dd2eba3ab06ba228e6f9bcdf81ffdeb029fbd438 100755 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "private": true, "scripts": { "precommit": "npm run lint-staged", - "start": "roadhog server", - "start:no-proxy": "cross-env NO_PROXY=true roadhog server", + "start": "roadhog dev", + "start:no-proxy": "cross-env NO_PROXY=true roadhog dev", "build": "roadhog build", "site": "roadhog-api-doc static && gh-pages -d dist", "analyze": "roadhog build --analyze", @@ -21,8 +21,8 @@ }, "dependencies": { "@antv/data-set": "^0.8.0", + "@babel/polyfill": "^7.0.0-beta.36", "antd": "^3.1.0", - "babel-polyfill": "^6.26.0", "babel-runtime": "^6.9.2", "bizcharts": "^3.1.0-beta.4", "bizcharts-plugin-slider": "^2.0.1", @@ -47,7 +47,7 @@ "devDependencies": { "babel-eslint": "^8.0.1", "babel-jest": "^22.0.4", - "babel-plugin-dva-hmr": "^0.4.0", + "babel-plugin-dva-hmr": "^0.4.1", "babel-plugin-import": "^1.2.1", "babel-plugin-transform-class-properties": "^6.24.1", "babel-plugin-transform-decorators-legacy": "^1.3.4", @@ -76,7 +76,7 @@ "pro-download": "^1.0.0", "react-test-renderer": "^16.0.0", "redbox-react": "^1.3.2", - "roadhog": "^1.3.1", + "roadhog": "^2.0.0-0", "roadhog-api-doc": "^0.3.3", "rollbar": "^2.3.1", "stylelint": "^8.1.0", diff --git a/src/index.ejs b/src/index.ejs index 586f62e88da0971078be870f355d44910e064dc0..fc8bf98ddb1fef9d3aa2bba9c43dd3b3ab641e6d 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -13,4 +13,4 @@