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

This commit is contained in:
2021-12-10 23:12:35 +09:00
parent 9dc842c6e9
commit 08178dd3aa
4 changed files with 49 additions and 5 deletions
+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({