Skip to content

Commit

Permalink
only adding alias when present
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Jun 25, 2017
1 parent 7b00ec8 commit 8c0aebd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/config-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ class ConfigGenerator {

config.resolve = {
extensions: ['.js', '.jsx', '.vue'],
alias: {
'vue$': 'vue/dist/vue.esm.js',
}
alias: {}
};

if (this.webpackConfig.useVueLoader) {
config.resolve.alias['vue$'] = 'vue/dist/vue.esm.js';
}

return config;
}

Expand Down

0 comments on commit 8c0aebd

Please sign in to comment.