diff --git a/build/webpack.config.js b/build/webpack.config.js index 1d311de95..3d79653a2 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -29,7 +29,7 @@ module.exports = { }, output: { path: './docs/build/', - publicPath: 'docs/build/', + publicPath: '/docs/build/', filename: '[name].js' }, resolve: { diff --git a/docs/index.js b/docs/index.js index c4e8a454f..c07a71401 100644 --- a/docs/index.js +++ b/docs/index.js @@ -29,7 +29,7 @@ routesConfig.push({ }); const router = new VueRouter({ - mode: 'hash', + mode: 'history', base: __dirname, routes: routesConfig }); diff --git a/examples.html b/examples.html index 908ff24d3..d98f116de 100644 --- a/examples.html +++ b/examples.html @@ -11,6 +11,6 @@ - + diff --git a/index.html b/index.html index 5b0f386b1..eedf1af13 100644 --- a/index.html +++ b/index.html @@ -11,6 +11,6 @@ - + diff --git a/package.json b/package.json index a71a8e726..3dd778b59 100644 --- a/package.json +++ b/package.json @@ -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"