Skip to content

Not actually serving two folders at the same time. #74

@fenilli

Description

@fenilli

Tried this code, and it works fine for the static file, it reads my index.html and serves it, but my dist folder is never served.

<!-- Servers correctly inside localhost:8080 -->
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf8" />
    <meta name="viewport" content="width=device-width" />

    <title>Button Sandbox</title>
</head>

<body>
    <!-- Always fails saying it cant find ./dist/index.js, looking inside chrome sources, there is index.html but no dist folder -->
    <script src="./dist/index.js"></script>
</body>

</html>
!production && serve({
	contentBase: ["dist", "static"],
	port: "8080"
}),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions