fix docs anchor

This commit is contained in:
cookfront 2017-03-22 14:47:07 +08:00
parent a955532901
commit 597d981f53
5 changed files with 6 additions and 6 deletions

View File

@ -29,7 +29,7 @@ module.exports = {
},
output: {
path: './docs/build/',
publicPath: 'docs/build/',
publicPath: '/docs/build/',
filename: '[name].js'
},
resolve: {

View File

@ -29,7 +29,7 @@ routesConfig.push({
});
const router = new VueRouter({
mode: 'hash',
mode: 'history',
base: __dirname,
routes: routesConfig
});

View File

@ -11,6 +11,6 @@
<app></app>
</div>
<script src="docs/build/zanui-examples.js"></script>
<script src="/docs/build/zanui-examples.js"></script>
</body>
</html>

View File

@ -11,6 +11,6 @@
<app></app>
</div>
<script src="docs/build/zanui-docs.js"></script>
<script src="/docs/build/zanui-docs.js"></script>
</body>
</html>

View File

@ -11,7 +11,7 @@
],
"scripts": {
"bootstrap": "npm i --registry=http://registry.npm.qima-inc.com",
"dev": "npm run build:file && webpack-dev-server --inline --hot --config build/webpack.config.js",
"dev": "npm run build:file && webpack-dev-server --inline --history-api-fallback --hot --config build/webpack.config.js",
"build:file": "node build/bin/build-entry.js",
"build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js",
"build:zanui-css": "gulp build --gulpfile packages/zanui-css/gulpfile.js && cp-cli packages/zanui-css/lib lib/zanui-css",
@ -141,7 +141,7 @@
"vue-template-compiler": "2.1.8",
"vue-template-es2015-compiler": "^1.4.2",
"webpack": "^2.2.1",
"webpack-dev-server": "^1.16.0",
"webpack-dev-server": "^1.16.3",
"webpack-merge": "^2.0.0",
"webpack-node-externals": "^1.5.4",
"webpack-vendor-chunk-plugin": "^1.0.0"