mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-01 16:36:19 +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) {
|
async function spawnElmMake(mode, options, elmEntrypointPath, outputPath, cwd) {
|
||||||
await runElmMake(mode, options, elmEntrypointPath, outputPath, cwd);
|
await runElmMake(mode, options, elmEntrypointPath, outputPath, cwd);
|
||||||
if (!options.debug) {
|
if (mode === "optimize") {
|
||||||
await elmOptimizeLevel2(outputPath, cwd);
|
await elmOptimizeLevel2(outputPath, cwd);
|
||||||
}
|
}
|
||||||
await fsPromises.writeFile(
|
await fsPromises.writeFile(
|
||||||
|
Loading…
Reference in New Issue
Block a user