Unity
- 5 ответов
- 0 вопросов
2
Вклад в тег
{
test: /\.(png|jpe?g|gif|svg)$/,
use: [
{
loader: 'file-loader',
options: {
name: '[name].[ext]',
context: 'images',
publicPath: (url, resourcePath, context) => {
if (/decoration/.test(resourcePath)) {
return `../${context}/decoration/${url}`;
}
return `${context}/${url}`;
},
outputPath: (url, resourcePath, context) => {
if (/decoration/.test(resourcePath)) {
return `${context}/decoration/${url}`;
}
return `${context}/${url}`;
},
},
},
],
},
.block {
margin-bottom: 40px;
}
div[class~="block"] + div:not([class~="block"]) {
margin-top: -40px;
}