【TSDX】在TSDX中引用css样式文件_unexpected token (note that you need plugins to im-CSDN博客

网站介绍:文章浏览阅读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