-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{{ mix('js/bundle.js') }} prepending "/" to path #856
Comments
It's intended. Look here. |
Hi, |
Maybe you could try call |
I am using |
This repo doesn't control that function. So that would be a Laravel framework issue. |
@ramakrishnamundru Workaround is using |
@ruchern And how does that resolve forcing leading slash behaviour? |
node -v
): 7.10.0npm -v
): 4.2.0Description:
I use this to compile my vue component with HMR.
<script src="{{ mix('js/bundle.js') }}"></script>
It is normal when used with
npm run hot
but when runnpm run dev
is outputting
<script src="/js/bundle.js"></script>
I set the resource root like this
mix.setResourceRoot('/myapp/public/');
Because of the "/" the browser is looking for the file in the root directory of the server instead of "myapp"
The text was updated successfully, but these errors were encountered: