Skip to content

Commit

Permalink
Add an alias from '@' to src (vuejs#426)
Browse files Browse the repository at this point in the history
* Add an alias from '@' to src

Closes vuejs#422
This makes it easier to combine with the official webpack template

* Update vue-build
  • Loading branch information
posva authored and egoist committed Jun 7, 2017
1 parent 979982c commit e98cc81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/vue-build
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ var webpackConfig = {
cwd('node_modules'), // modules in cwd's node_modules
ownDir('node_modules') // modules in package's node_modules
],
alias: {}
alias: {
'@': path.resolve('src')
}
},
resolveLoader: {
modules: [
Expand Down

0 comments on commit e98cc81

Please sign in to comment.