Loading vue-i18n-loader on Symfony Webpack Encore #52
Unanswered
erikas-tranauskas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am having a problem loading vue-i18n-loader on my Symfony project.
I am using Webpack Encore, so loader configuration is made via Symfony way. I am following this documentation: https://symfony.com/doc/current/frontend/encore/advanced-config.html#having-the-full-control-on-loaders-rules
And my webpack.config.js file looks like this:
`Encore.configureLoaderRule('vue', loaderRule => {
loaderRule.test = /.vue$/;
});
Encore.configureLoaderRule('js', loaderRule => {
loaderRule.resourceQuery = /blockType=i18n/;
loaderRule.type = 'javascript/auto';
loaderRule.use = 'i18n';
});
module.exports = Encore.getWebpackConfig();`
The problem is that I don't know how to set the loader to '@intlify/vue-i18n-loader'. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions