新建html5模块格式,在TSDX中引用css,less,样式文件并模块化样式-CSDN博客

网站介绍:文章浏览阅读348次。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 = req..._note that you need plugins to import files that are not javascriot