fuse-box / fuse-box/react-example

Production Build without dev-server not working

未关闭
#18 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
70
派生
36
PR 合并指标
30 天内没有已合并 PR

描述

When I commented out the ``fuse.dev()`` in the ``dist``-Task, the produced output is not working. My ``dist``-Task looks like this:

````javascript
Sparky.task('dist', ['prod-env', 'config'], () => {
// comment out to prevent dev server from running (left for the demo)
// fuse.dev();
return fuse.run();
});
````
The output in the ``index.html`` file in the ``dist`` directory which is produced is this one:

````html

Test




````

But in the ```` tag it has to be ``./28e01eb1-api.js`` with a dot (.) to work.

If i commented in the ``run.dev()`` command, it works. So there seems to be a difference if I start it from a file or with the ``run.dev()`` command.

---------

Also there is something left from the babel Plugin. In the ``fuse.js`` on line 6 there's still the ``BabelPlugin`` left. It seems to be unused.

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 issue 中显示的 dist 任务开始,比较省略 fuse.dev() 时生成的 dist/index.html 与 run.dev() 的行为。检查 fuse.js 第 6 行中剩余的 BabelPlugin 引用。完成意味着生产输出无需 dev server 即可工作,并且未使用的插件引用已得到处理。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, typescript
领域
build-system
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。