在vue文件中的script标签写 import '@/assets/bootstrap.css',引入样式文件前端页面报错<script>import './../assets/bootstrap.css'export default { name: 'hello', data () { return { } }}</script>报错信息:ERROR in ./~/_css-loader@0.28.7@css-loader?{"minimize":false,"sourceMap":false}!./src/assets/bootstrap.cssModule not found: Error: Can't resolve '../fonts/glyphicons-halflings-regular.eot' in 'C:\Users\Administrator\Desktop\vue\newPro\src\assets' @ ./~/_css-loader@0.28.7@css-loader?{"minimize":false,"sourceMap":false}!./src/assets/bootstrap.css 6:3286-3338 6:3356-3408 @ ./src/assets/bootstrap.css @ ./~/_babel-loader@7.1.2@babel-loader/lib!./~/_vue-loader@13.0.4@vue-loader/lib/selector.js?type=script&index=0!./src/views/goodlist.vue @ ./src/views/goodlist.vue @ ./src/router/index.js @ ./src/main.js @ multi ./build/dev-client ./src/main.js大神来看下问题,小弟感激不尽
1 回答
富国沪深
TA贡献1790条经验 获得超9个赞
报错信息里面不是说的很清楚吗……
Module not found: Error: Can't resolve '../fonts/glyphicons-halflings-regular.eot' in 'C:UsersAdministratorDesktopvuenewProsrcassets'
模块中没有找到glyphicons-halflings-regular.eot
字体文件。
添加回答
举报
0/150
提交
取消