mirror of
https://github.com/dillonkearns/elm-pages.git
synced 2024-09-11 09:05:28 +03:00
Change CLI output file path extension to .cjs.
This commit is contained in:
parent
29b1c2647c
commit
8978ed1ac9
@ -603,7 +603,7 @@ function _HtmlAsJson_toJson(html) {
|
||||
`;
|
||||
|
||||
await fsPromises.writeFile(
|
||||
ELM_FILE_PATH(),
|
||||
ELM_FILE_PATH().replace(/\.js$/, ".cjs"),
|
||||
elmFileContent
|
||||
.replace(
|
||||
/return \$elm\$json\$Json\$Encode\$string\(.REPLACE_ME_WITH_JSON_STRINGIFY.\)/g,
|
||||
|
Loading…
Reference in New Issue
Block a user