fuse-box / fuse-box/react-example

Production Build without dev-server not working

オープン
#18 コメント 1 件 リアクション 0 件 担当者 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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。