More sensible patch for building on windows
This commit is contained in:
parent
3fc2108214
commit
12e632d221
@ -42,25 +42,12 @@ export function vendorFrontendDependencies(params: { distDirPath: string }) {
|
|||||||
webpackConfigJsFilePath,
|
webpackConfigJsFilePath,
|
||||||
Buffer.from(
|
Buffer.from(
|
||||||
[
|
[
|
||||||
`const path = require('path');`,
|
|
||||||
``,
|
``,
|
||||||
`module.exports = {`,
|
`module.exports = {`,
|
||||||
` mode: 'production',`,
|
` mode: 'production',`,
|
||||||
` entry: path.join(...[__dirname, ${pathRelative(
|
` entry: Buffer.from("${Buffer.from(filePath, "utf8").toString("base64")}", "base64").toString("utf8"),`,
|
||||||
pathDirname(webpackConfigJsFilePath),
|
|
||||||
filePath
|
|
||||||
)
|
|
||||||
.split(pathSep)
|
|
||||||
.map(segment => `"${segment}"`)
|
|
||||||
.join(", ")}]),`,
|
|
||||||
` output: {`,
|
` output: {`,
|
||||||
` path: path.join(...[__dirname, ${pathRelative(
|
` path: Buffer.from("${Buffer.from(webpackOutputDirPath, "utf8").toString("base64")}", "base64").toString("utf8"),`,
|
||||||
pathDirname(webpackConfigJsFilePath),
|
|
||||||
webpackOutputDirPath
|
|
||||||
)
|
|
||||||
.split(pathSep)
|
|
||||||
.map(segment => `"${segment}"`)
|
|
||||||
.join(", ")}]),`,
|
|
||||||
` filename: '${pathBasename(webpackOutputFilePath)}',`,
|
` filename: '${pathBasename(webpackOutputFilePath)}',`,
|
||||||
` libraryTarget: 'module',`,
|
` libraryTarget: 'module',`,
|
||||||
` },`,
|
` },`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user