在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.css
Module 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
大神来看下问题,小弟感激不尽
富国沪深
相关分类