yyx990803 / laravel-vue-cli-3

Example project using Vue CLI 3 with Laravel
848 stars 183 forks source link

Output Dir #20

Closed marcnewton closed 5 years ago

marcnewton commented 5 years ago

Windows 10 NPM 6.4.1 Node 10.14.1 Vue 3.2.1

When outputDir is set to ../public as stated in the README.md file, The production build does not generate the Laravel blade file, instead the outputDir must be set to public for it to work...

Does not work:

    outputDir: '../public',
    indexPath: process.env.NODE_ENV ? '../resources/views/index.blade.php' : 'index.html'

Does Work:

    outputDir: 'public',
    indexPath: process.env.NODE_ENV ? '../resources/views/index.blade.php' : 'index.html'

Is anybody else experiencing relative path issue on other platforms?