From 0f389f6ca017394eef2125631dd282d26c33a708 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Tue, 31 Jan 2017 07:57:41 -0600 Subject: [PATCH 1/2] Use absolute path for component alias --- bin/vue-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/vue-build b/bin/vue-build index 6b58ec3e49..f259243646 100755 --- a/bin/vue-build +++ b/bin/vue-build @@ -203,7 +203,7 @@ if (options.mount === undefined && !options.lib && /\.vue$/.test(options.entry)) // otherwise use it directly as webpack entry if (options.mount) { webpackConfig.entry.client.push(path.join(__dirname, '../lib/default-entry.es6')) - webpackConfig.resolve.alias['your-tasteful-component'] = options.entry + webpackConfig.resolve.alias['your-tasteful-component'] = path.join(process.cwd(), options.entry) } else { webpackConfig.entry.client.push(options.entry) } From 927fa10885456259f1e6789ac8742ea41cd67289 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Tue, 31 Jan 2017 08:05:39 -0600 Subject: [PATCH 2/2] use path.resolve --- bin/vue-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/vue-build b/bin/vue-build index f259243646..65e3cd73d9 100755 --- a/bin/vue-build +++ b/bin/vue-build @@ -203,7 +203,7 @@ if (options.mount === undefined && !options.lib && /\.vue$/.test(options.entry)) // otherwise use it directly as webpack entry if (options.mount) { webpackConfig.entry.client.push(path.join(__dirname, '../lib/default-entry.es6')) - webpackConfig.resolve.alias['your-tasteful-component'] = path.join(process.cwd(), options.entry) + webpackConfig.resolve.alias['your-tasteful-component'] = path.resolve(process.cwd(), options.entry) } else { webpackConfig.entry.client.push(options.entry) }