Skip to content

Yish

VuePress integrates into Laravel

Laravel, VuePress1 min read

I assume you can build vuepress standalone, so you know vuepress is compiled by node.js and it generated .html file in dist by default. We can use this feature to integrate into laravel. Prerequisites * You have been installed vuerpess in your laravel project.

First of all, you have to set .vuepress/config.js, docs , the meaning is your compiled files where do you want to put it, and set your base uri.

Secondly, you need to tell laravel where can you get its path in config/view.php

Thirdly, you can writing closure or controller putting the code.