diff --git a/package.json b/package.json index 6712801c7..fb4716aa0 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "v-tooltip": "^2.0.0-rc.30", "vee-validate": "2.0.9", "vue": "^2.5.17", - "vue-book": "0.0.15", + "vue-book": "0.1.0-alpha.6", "vue-bulma-expanding": "0.0.1", "vue-chartjs": "^3.4.0", "vue-color": "^2.7.0", diff --git a/src/router/index.js b/src/router/index.js index 4388d468a..24fe2c960 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -8,11 +8,17 @@ Vue.use(Router) const demoRoutes = [] if (process.env.NODE_ENV === 'development') { - const VueBook = require('vue-book').default + const createRoute = require('vue-book').createRoute demoRoutes.push( - VueBook(require.context('./..', true, /.demo.vue$/), '/demo'), - VueBook(require.context('./../components', true, /.vue$/), '/presentation'), + createRoute({ + requireContext: require.context('./..', true, /.demo.vue$/), + path: '/demo', + }), + createRoute({ + requireContext: require.context('./../components', true, /.vue$/), + path: '/presentation', + }), ) } diff --git a/yarn.lock b/yarn.lock index 3e7cc4675..8751fbcfd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7832,9 +7832,10 @@ vm-browserify@0.0.4: dependencies: indexof "0.0.1" -vue-book@0.0.15: - version "0.0.15" - resolved "https://registry.yarnpkg.com/vue-book/-/vue-book-0.0.15.tgz#55074097f63d83c21b224bed4ffeb354a1291557" +vue-book@0.1.0-alpha.6: + version "0.1.0-alpha.6" + resolved "https://registry.yarnpkg.com/vue-book/-/vue-book-0.1.0-alpha.6.tgz#02c21e4af8713a6cde0113c1cadcae4f1714f9b6" + integrity sha512-U4bPAL+eIVAaX5zbwNau5CbGm6IADouvhDHiJAs0QiAazQYw+ECdiOxne/06fbWojSRaNmavIwzywqzx5/S45A== vue-bulma-expanding@0.0.1: version "0.0.1"