CSS
- 1 ответ
- 0 вопросов
1
Вклад в тег
module: {
rules: [
....
{
test: /\.(woff|woff2|ttf|otf|eot)$/,
type: 'asset/resource',
generator: {
filename: 'assets/fonts/[name][ext]'
}
},
{
test: /\.(jpe?g|png|gif|svg|ico)$/,
type: 'asset/resource',
generator: {
filename: 'assets/img/[name][ext]'
}
}
....
],
},
<picture>
<source srcset="desktop.png" media="(min-width: 768px)">
<img src="mobile.png" alt="My image">
</picture>