私は2つの異なる画像フォルダを持っています。
- のsrc /資産/ IMG/img1.png
- のsrc /コンテンツ/メディア/ img2.png
distディレクトリ出力この:
- DIST/img1.png
- DIST/IMG2 .pngの
が、このようにする必要があります:
-/img1.png
DIST /資産/ IMG - img2.png DIST /コンテンツ/メディア/
webpackファイルローダー画像を別のディレクトリに移動
動作するため変更する必要があるのは何ですか?
{
test: /\.(jpg|png|svg)$/,
use: [
{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'content/media/',
},
}
]
},
質問は何ですか?あなたは何をしたいですか? – cSteusloff
質問が修正されました – cemfirat