- 链接地址:https://blog.csdn.net/kd_2015/article/details/110620231
- 链接标题:【TSDX】在TSDX中引用css样式文件_unexpected token (note that you need plugins to im-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:1209
文章浏览阅读4.1k次,点赞3次,收藏2次。如何在TSDX中引用css样式文件?TSDX默认不支持引入css,遇到 import xxx.css 会提示:✖ Failed to compileError: Unexpected token (Note that you need plugins to import files that are not JavaScript)解决方法在项目根目录,新建tsdx.config.js:const postcss = require('rollup-plugin-postcss');mo._unexpected token (note that you need plugins to import files that are not ja
版权声明:本文发布于特牛生活网 内容均来源于互联网 如有侵权联系删除