Missing main app JS file after adding 'prepack-webpack-plugin' to project
Simek opened this issue · 1 comments
It was another attempt to include Prepack to my project after #2540. No fancy configuration just plain entry in Webpack plugins array:
new PrepackWebpackPlugin({})
Build succeeded with no error message. All chunks/modules declared in code splitting configuration are exposed and linked in HTML, but main index.js
file is missing witch causes blank page. Webpack logged that file has been built: 1.57 kB 196 ./src/index.js built
.
Removing prepack-webpack-plugin
from plugins array fixes that issue.
I have no clue why this happening. Is there any way to provide you a log or extract valuable debug information?
Part of index.html
without Prepack plugin:
<div id="app"><div class="organization-module login"><div class="notif__container "><span></span></div><div class="login-wrapper"><section class="login-box"><img src="/public/logo-small.png" class="login-logo" alt=""><div id="form"><div class="field-wrapper"><label for="username">User</label><input type="text" class="" autocomplete="off"></div><div class="field-wrapper"><label for="password">Password</label><input type="password" class="" autocomplete="off"></div><button class="button green">Login</button></div></section><div class="login-img"></div><div class="login-bg"></div></div></div></div>
Part of index.html
WITH Prepack plugin:
<div id="app"></div>