如何使用webpack HotModuleReplacementPlugin构建两个html网站

时间:2017-09-01 08:08:08

标签: reactjs webpack

我使用webpack HotModuleReplacementPlugin让我的网站在我修复代码时可以热重新加载。

但我不知道如何构建两个html页面。

我想要建立两个页面“index.html”& “introduction.html”

现在我在我的webpack.config.js中使用这些代码但是它会有问题,在Chrome开发工具中会显示

「未捕获的错误:_registerComponent (...):目标容器不是DOM元素。

我怎样才能解决这些问题?

09-01 15:57:19.588 2347-4568/system_process I/ActivityManager: Start proc 7045:com.google.android.apps.photos/u0a64 for activity com.google.android.apps.photos/.photoeditor.intents.EditActivity
09-01 15:57:19.630 6179-6260/com.snap.testsnapboard D/EGL_emulation: eglMakeCurrent: 0xa9005de0: ver 2 0 (tinfo 0xa9003780)
09-01 15:57:19.834 7045-7045/com.google.android.apps.photos W/System: ClassLoader referenced unknown path: /system/app/Photos/lib/x86
09-01 15:57:20.521 7045-7045/com.google.android.apps.photos W/TrustedPartners: no provider found for com.motorola.camera.provider.bestshotprovider.BestShotProvider; do not trust
09-01 15:57:20.522 7045-7045/com.google.android.apps.photos W/TrustedPartners: no provider found for com.google.android.apps.photos.api.SpecialTypesProvider; do not trust
09-01 15:57:20.522 7045-7045/com.google.android.apps.photos W/TrustedPartners: no provider found for com.lge.photos.specialtypeprovider; do not trust

0 个答案:

没有答案