F-loat / mpvue-entry

⛓️ 集中式页面配置,统一构建入口,支持新增页面热更新
MIT License
353 stars 56 forks source link

导入css、less后报错 #50

Closed KeeepTrying closed 6 years ago

KeeepTrying commented 6 years ago

e s q9o w848ukmy _ g image 一导入就报错,去掉就没事,而且注释后热启动还是报错,必须重启 但是在App.vue中style下导入时可以的

F-loat commented 6 years ago

最新版应该支持这种写法了,旧版可以用 @/xxx 这种方式引入,或者通过 // app-only 做下标识

KeeepTrying commented 6 years ago

mpvue-entry@1.4.4,就是最新版了,@是可以的,相对路径并不阔以

F-loat commented 6 years ago

相对路径应该会转为绝对路径的,我明天再测下

F-loat commented 6 years ago

@jpdan 修复了,之前确实只匹配了 import xxx from './xxx' 的语句,v1.4.7