vue-skeleton-webpack-plugin icon indicating copy to clipboard operation
vue-skeleton-webpack-plugin copied to clipboard

loader 产出 skeleton 路由 component 有误

Open negativeentropy9 opened this issue 6 years ago • 2 comments

examples/multipage3 中的 loader,编译产出 bundle skeleton 路由 component 有误。错误产出代码如下:

new _vueRouter2.default({ mode: 'hash', routes: [{ path: '/page1-skeleton', name: 'skeleton-page1', component: _154496702053738460c0eb5767403aa7cced9ee19909b } 控制台报错如下: image

negativeentropy9 avatar Dec 16 '18 14:12 negativeentropy9

请看下面,我在我本机试了一下,并没有报错,是不是配置写错了

image

PengXing avatar Dec 17 '18 02:12 PengXing

请看下面,我在我本机试了一下,并没有报错,是不是配置写错了

image

不好意思,我上面的控制台指的是 chrome 浏览器的 devtools 控制台报错,webpack 构建过程中的确没有报错,可是构建产出的 skeleton router 的 component 绑定 有问题,是一个 hash 值,而不是对应的 skeleton 组件。

negativeentropy9 avatar Dec 17 '18 11:12 negativeentropy9