"webpack": "^4.41.5"
配置style-loader的时候
insert:head配置无效
insertAt: 'top'也无效
有人遇到过这样的问题吗
{
test: /\.css$/,
use: [
{
loader: 'style-loader',
options: {
insert: 'head'
}
},
'css-loader'
]
}
目前


style-loader
(版本1.1.3)的支持配置项目:insert: 'head'
是默认项,意思是将css
插入到head
元素中insertAt
配置项,在版本1的时候已经废弃了