Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions lib/renderer/renderer-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,12 @@ class Renderer {
const clientFilename = "client.bundle.js";
let memoryParsed;
if (filePath.includes(".expressvue")) {
memoryParsed = path.parse(filePath.replace(".expressvue/", "").split(this.pagesPath)[1]);
memoryParsed = path.parse(filePath.replace(".expressvue" + path.sep, "").split(this.pagesPath)[1]);
} else {
memoryParsed = path.parse(filePath.split(this.pagesPath)[1]);
}
const memoryBase = path.join(`/${this.baseUrl}/expressvue/bundles`, memoryParsed.dir);

const memoryBase = path.join(path.sep === '/' ? '/' : 'C:\\', `${this.baseUrl}/expressvue/bundles`, memoryParsed.dir);
const memoryPath = path.join(memoryBase, memoryParsed.name);

return {
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports.appConfig = function appConfig(filePath, config) {
}

const app = `import Vue from "vue";
import App from "${filePath}";
import App from ${JSON.stringify(filePath)};

export function createApp(data) {
const mergedData = Object.assign(App.data ? App.data() : {}, data);
Expand Down