您的位置: 首页 > 文章 > You may need an appropriate loader to handle this file type You may need an appropriate loader to handle this file type 分类: 文章 • 2024-05-13 14:26:46 webpack 引入css编译问题 // 配置loader,在webpack.config.js中 module:{ rules:[ { test:/\.css$/i, //使用style-loader css-loader 从右往左生效 use:['style-loader','css-loader'] } ] }, 学习webpack入门时出现的问题,记录一下,路过的朋友,看看就好