JeffreyWay / laravel-elixir-vueify

This is a very thin wrapper for Laravel Elixir and the Browserify Vueify plugin.
156 stars 30 forks source link

Absolute path exposed #9

Closed hedii closed 8 years ago

hedii commented 8 years ago

Hi, i don't know if the issue is specific to laravel-elixir-vueify or to vueify, but some absolute paths are exposed in the compiled js. Like in your example repo : https://github.com/laracasts/Laravel-Elixir-Vueify-Setup/blob/master/public/js/main.js#L10600

it can be dangerous in production server, because it exposes the project path, and also the user on linux systems ('/home/the_user/public_html/......')

is there a workaround to avoid that?

hedii commented 8 years ago

to get rid of absolute paths: export NODE_ENV=production && gulp --production