vuejs / vueify

Browserify transform for single-file Vue components
MIT License
1.17k stars 152 forks source link

Use Aliasify with vueify #226

Open salvatoredibenedetto opened 6 years ago

salvatoredibenedetto commented 6 years ago

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 commented 6 years ago

I solved moving vueify above aliasify

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

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