Rename static/ -> public/.
Before Width: | Height: | Size: 154 KiB After Width: | Height: | Size: 154 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 827 B After Width: | Height: | Size: 827 B |
Before Width: | Height: | Size: 976 B After Width: | Height: | Size: 976 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 293 KiB After Width: | Height: | Size: 293 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 827 B After Width: | Height: | Size: 827 B |
Before Width: | Height: | Size: 976 B After Width: | Height: | Size: 976 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 827 B After Width: | Height: | Size: 827 B |
Before Width: | Height: | Size: 976 B After Width: | Height: | Size: 976 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 827 B After Width: | Height: | Size: 827 B |
Before Width: | Height: | Size: 976 B After Width: | Height: | Size: 976 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
@ -279,7 +279,7 @@ async function copyAssets() {
|
||||
"dist/elm-pages.js",
|
||||
fs.readFileSync(path.join(__dirname, "../static-code/elm-pages.js"))
|
||||
);
|
||||
fs.copyDirFlat("static", "dist");
|
||||
fs.copyDirFlat("public", "dist");
|
||||
}
|
||||
|
||||
async function compileCliApp(options) {
|
||||
|
@ -15,7 +15,7 @@ async function start(options) {
|
||||
global.staticHttpCache = {};
|
||||
let elmMakeRunning = true;
|
||||
|
||||
const serve = serveStatic("static/", { index: false });
|
||||
const serve = serveStatic("public/", { index: false });
|
||||
const generatedFilesDirectory = "elm-stuff/elm-pages/generated-files";
|
||||
fs.mkdirSync(generatedFilesDirectory, { recursive: true });
|
||||
const serveGeneratedFiles = serveStatic(generatedFilesDirectory, {
|
||||
|