mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-29 14:56:36 +03:00
Only run elm-optimize-level-2 for --optimize flag.
This commit is contained in:
parent
5595493fcc
commit
3745c76ecb
@ -393,7 +393,7 @@ function elmOptimizeLevel2(outputPath, cwd) {
|
||||
*/
|
||||
async function spawnElmMake(mode, options, elmEntrypointPath, outputPath, cwd) {
|
||||
await runElmMake(mode, options, elmEntrypointPath, outputPath, cwd);
|
||||
if (!options.debug) {
|
||||
if (mode === "optimize") {
|
||||
await elmOptimizeLevel2(outputPath, cwd);
|
||||
}
|
||||
await fsPromises.writeFile(
|
||||
|
Loading…
Reference in New Issue
Block a user