Fix prerendering for articles.

This commit is contained in:
Dillon Kearns 2019-07-23 09:26:55 -07:00
parent 8792517db8
commit 65566f02a4
3 changed files with 3 additions and 5 deletions

View File

@ -4,8 +4,7 @@
"description": "Static site generator for elm-markup.",
"scripts": {
"start": "parcel src/index.html",
"build": "rm -r dist && parcel build src/index.html --public-url ./",
"generator:build": "parcel build generator/src/elm-markup-pages.ts --out-file bundle.js --target node --bundle-node-modules --no-source-maps",
"build": "rm -r dist && parcel build src/index.html",
"test": "elm-test",
"autotest": "elm-test --watch"
},

View File

@ -1,4 +1,4 @@
import { Elm } from "../Main.elm";
import { Elm } from "./Main.elm";
Elm.Main.init({
node: document.getElementById("app")

View File

@ -3,11 +3,10 @@
<head>
<meta charset="UTF-8" />
<title>elm-markup-pages</title>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<div id="app"></div>
<script src="./js/app.js"></script>
<script src="./app.js"></script>
</body>
</html>