[Webpack] - file-loader 설치후 에러 발생
baesee0806 opened this issue · comments
오류 내용
module parse failed: unexpected character ' ' (1:0) you may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. see https://webpack.js.org/concepts#loaders (source code omitted for this binary file)
문제점 [webpack.config.js]
- 이전
module: {
rules: [
{
test: test: /\.(png|jpe?g|gif|svg|webp)$/i,,
use: ['file-loader']
}
]
}
}
- 이후
module: {
rules: [
{
test: /\.png$/,
use: ["file-loader"],
},
],
},