8000 Add an alias from '@' to src (#426) · coder-caicai/vue-cli@e98cc81 · GitHub
[go: up one dir, main page]

Skip to content

Commit e98cc81

Browse files
posvaegoist
authored andcommitted
Add an alias from '@' to src (vuejs#426)
* Add an alias from '@' to src Closes vuejs#422 This makes it easier to combine with the official webpack template * Update vue-build
1 parent 979982c commit e98cc81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/vue-build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ var webpackConfig = {
150150
cwd('node_modules'), // modules in cwd's node_modules
151151
ownDir('node_modules') // modules in package's node_modules
152152
],
153-
alias: {}
153+
alias: {
154+
'@': path.resolve('src')
155+
}
154156
},
155157
resolveLoader: {
156158
modules: [

0 commit comments

Comments
 (0)
0