Skip to content

在含有 “.” 符号的路径中, 无法如期生成 .min.js 到指定目录 #17

Description

@CairLyq

背景

例如在项目包名字为 core1.1 下执行 egf build -f iife:core , 无法如期生成 .min.js 到指定目录

分析

node_modules@ailhc\egf-cli\libs\rollupdo.js LINE:376

outputOption.file = outputOption.file.replace(".", ".min.");

此代码未做 .js 文件名后缀识别 , 请修改为

outputOption.file = outputOption.file.replace(".js", ".min.js");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions