Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.

Commit 7c1e230

Browse files
Adam BiggsLinusBorg
authored andcommitted
Add support for linked modules (vuejs-templates#688)
1 parent 0880d9b commit 7c1e230

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

template/build/webpack.base.conf.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
var path = require('path')
2+
var fs = require('fs')
23
var utils = require('./utils')
34
var config = require('../config')
45
var vueLoaderConfig = require('./vue-loader.conf')
56

67
function resolve (dir) {
7-
return path.join(__dirname, '..', dir)
8+
return fs.realpathSync(__dirname + '/' + path.join('..', dir))
89
}
910

1011
module.exports = {
@@ -24,8 +25,9 @@ module.exports = {
2425
{{#if_eq build "standalone"}}
2526
'vue$': 'vue/dist/vue.esm.js',
2627
{{/if_eq}}
27-
'@': resolve('src')
28-
}
28+
'@': resolve('src'),
29+
},
30+
symlinks: false
2931
},
3032
module: {
3133
rules: [

0 commit comments

Comments
 (0)