Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

Use Aliasify with vueify #226

Open
salvatoredibenedetto opened this issue Apr 10, 2018 · 1 comment
Open

Use Aliasify with vueify #226

salvatoredibenedetto opened this issue Apr 10, 2018 · 1 comment

Comments

@salvatoredibenedetto
Copy link

salvatoredibenedetto commented Apr 10, 2018

Hi i am having problems while i import files within my project using aliases.
It looks like that aliases are not resolved in the .vue files.
I tryed adding:

appliesTo: { includeExtensions: [ '.js', '.vue' ] }

in the Aliasify configuration then i get a syntax error as probably Vueify didn't started yet and it's not able to parse the vue <template></template>.

I am using Grunt and at moment i can't switch to Webpack.

Does someone had a same issue?

@salvatoredibenedetto
Copy link
Author

I solved moving vueify above aliasify

transform: [ [ 'vueify', { ... } ], [ 'babelify', { ... } ], [ 'aliasify', { ... } ] ]

And keeping appliesTo: { includeExtensions: [ '.js', '.vue' ] } within Aliasify

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

No branches or pull requests

1 participant