fix: 앞선 refactor에서 경로 문제 수정

This commit is contained in:
Hide_D committed 2021-12-10 23:12:35 +09:00
1 parent 975f77e907
commit 18807a642a
4 files changed
+49 -5

No files matched your search

+45 -2
View File
@@ -274,7 +274,29 @@ module.exports = (env, argv) => {
{
test: /.(s?[ac]ss)$/,
use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader']
}]
},
{
test: /\.(png|jpe?g|gif|webp)$/,
use: [
{
loader: 'file-loader',
options: {
name: '../dist_misc/[name].[contenthash:8].[ext]'
}
}
]
},
{
test: /\.(svg)$/,
use: [
{
loader: 'file-loader',
options: {
name: '../dist_misc/[name].[contenthash:8].[ext]'
}
}
]
},]
},
plugins: [
new CleanTerminalPlugin(),
@@ -382,7 +404,28 @@ module.exports = (env, argv) => {
}, {
test: /.(s?[ac]ss)$/,
use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader']
}]
}, {
test: /\.(png|jpe?g|gif|webp)$/,
use: [
{
loader: 'file-loader',
options: {
name: '../dist_misc/[name].[contenthash:8].[ext]'
}
}
]
},
{
test: /\.(svg)$/,
use: [
{
loader: 'file-loader',
options: {
name: '../dist_misc/[name].[contenthash:8].[ext]'
}
}
]
},]
},
plugins: [
new MiniCssExtractPlugin({