Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

fix(Vue): resolve full path for entry module #744

Merged
merged 1 commit into from
Dec 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions templates/webpack.vue.js
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -149,7 +149,7 @@ module.exports = env => {
},
module: {
rules: [{
test: new RegExp(entryPath),
test: entryPath,
use: [
// Require all Android app components
platform === "android" && {
Expand Down