我想保留一行代码,比如:
h3 {
@apply text-2xl mt-8 mb-4;
}不幸的是,顺风正在清除h3-tag :-/
这是配置:
purge: {
content: ['./resources/js/**/*.vue',],
options: {
whitelist: ['h1', 'h2', 'h3'],
}
},发布于 2020-10-05 17:24:24
purge.options.whitelist是要列入白名单的类名的数组。因此,您的代码白名单是.h1、.h2和.h3类,而不是实际的标签。
解决方案
/* purgecss start ignore */
h3 {
@apply text-2xl mt-8 mb-4;
}
/* purgecss end ignore */https://stackoverflow.com/questions/64126867
复制相似问题