From d96d70282c93c47f0f9df01756ad1cbd6154a9f3 Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Mon, 17 Dec 2018 11:04:44 +0200 Subject: [PATCH] fix(Vue): resolve full path for entry module fixes #742 --- templates/webpack.vue.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/webpack.vue.js b/templates/webpack.vue.js index ba91deff..bd6a23e3 100644 --- a/templates/webpack.vue.js +++ b/templates/webpack.vue.js @@ -1,4 +1,4 @@ -const { relative, resolve, sep } = require("path"); +const { relative, resolve } = require("path"); const webpack = require("webpack"); const CleanWebpackPlugin = require("clean-webpack-plugin"); @@ -56,7 +56,7 @@ module.exports = env => { const appResourcesFullPath = resolve(projectRoot, appResourcesPath); const entryModule = nsWebpack.getEntryModule(appFullPath); - const entryPath = `.${sep}${entryModule}`; + const entryPath = resolve(appFullPath, entryModule); console.log(`Bundling application for entryPath ${entryPath}...`); const config = { @@ -149,7 +149,7 @@ module.exports = env => { }, module: { rules: [{ - test: new RegExp(entryPath), + test: entryPath, use: [ // Require all Android app components platform === "android" && {