Skip to content
This repository was archived by the owner on Mar 31, 2020. It is now read-only.

Conversation

Marwelln
Copy link
Contributor

If you didn't use public as public directory, version would fail, no matter what because it was hard coded. This change will allow you to change it.

If you are using public_html instead of public, you can with this change use

.version('css/app.css', 'public_html', 'public_html');

This will set the base path to public_html (third argument). Second argument would tell the build directory to be public_html/build.

If you didn't use `public` as public directory, version would fail, no matter what because it wass hard coded. This change will allow you to change it.

If you are using `public_html` instead of `public`, you can with this change use

    .version('css/app.css', 'public_html', 'public_html');

This will set the base path to `public_html` (third argument). Second argument would tell the build directory to be `public_html/build`.
@dandonahoe
Copy link

This has been driving me crazy as well

@JeffreyWay
Copy link
Contributor

But why would it ever be public_html? Laravel uses the public/ folder.

Sorry if I'm misunderstanding something... Will close unless someone responds with more clarification.

@JeffreyWay JeffreyWay closed this Feb 25, 2015
@Marwelln
Copy link
Contributor Author

Because not all webhosts uses public as their public folder. It's possible to change the public directory in Laravel so it would be weird not being able to change it in Elixir that ships with Laravel.

Elixir can be used outside of Laravel too, and it's the same there, not everyone uses public as their public directory.

@kirkbushell
Copy link

+1

@JulienTant
Copy link

+1

And, this is such a nice feature for poeple using it outside Laravel, or even inside Laravel if they don't use public for any reasons.

@nWidart
Copy link

nWidart commented Mar 13, 2015

+1
It seems logical that if laravel gives the option to rename the Public folder, that Elixir should do too.

@patrickbrouwers
Copy link

+1
Our VPS's use DirectAdmin and have public_html set as default. It's not really easy to change it every time. We would rather change a config setting in Elixir, so we can use features like cache busting properly.
I don't see any harm in having a setting for the publicPath (in elixir.json), which is set to public by default.

@FrankPeters
Copy link

+1

I agree with the arguments mentioned above, would like this as well. 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants