-
Notifications
You must be signed in to change notification settings - Fork 808
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
Extend vue loaders #732
Comments
Not at the moment. |
Has this feature been added yet? Is there a workaround? |
Edit: don't do hack, but use code from next post Add the line
next: how to do this w/o altering the mix file... |
Once you understand how things works, it's just too simple :|... Just add this to webpack.mix.js
|
With the current version of Laravel-mix, the above code generates the error: @JeffreyWay I tried multiple approaches to add i18n, using the docs of the latest version of laravel-mix, but all failed with errors. Eventually I forked it and added the lines myself, but that would be a temp. solution. The docs seem to suggest it is possible to merge new config with the current one, using |
In case anyone comes here searching for the solution:
|
Hello, This topic has been closed for a while now, but with the new version of mix, a lot of things seems to have changed. Can anyone show a new way to add vue-i18n-loader in laravel-mix 4 ? |
@lukadriel7 I've been keeping the vue-i18n documentations regarding laravel-mix up to date, so you can find the code in the documentations of vue-i18n: |
@JBtje Thank you very much, I had done some digging myself and came up with a solution where I simply pushed vue-i18n in the rules array like this
But I guess it would be better to go with your solution. |
Is there a way to extend vue loaders? I'm trying to use vue-i18n in single file components
this is what i want to achieve
Thanks in advance.
The text was updated successfully, but these errors were encountered: