Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js)

引入uni.css 时 @import url(./common/uni.css);
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js)_第1张图片原因:Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js)_第2张图片uni.css里面引入了 uni.ttf
检查项目的static目录下是否有uni.ttf
没有加上就行。
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js)_第3张图片OK
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js)_第4张图片

你可能感兴趣的:(uniapp,HBuilderX)