fis3-postpackager-loader
fis3-postpackager-loader copied to clipboard
css文件合并后的type依然是'js'
"pkg": {
"m:pkg/page/demo/demo.html_aio.css": {
"type": "js",
"uri": "/static/m/pkg/page/demo/demo.html_aio.css",
"has": [
"m:widget/yellow/yellow.css",
"m:widget/green/green.css"
]
}
}
"res": {
"m:widget/green/green.css": {
"uri": "/static/m/widget/green/green.css",
"type": "css",
"aioPkg": "m:pkg/page/demo/demo.html_aio.css"
},
"m:widget/yellow/yellow.css": {
"uri": "/static/m/widget/yellow/yellow.css",
"type": "css",
"aioPkg": "m:pkg/page/demo/demo.html_aio.css"
}
}
.match('::package', {
postpackager: fis.plugin('loader', {
resourceType: 'mod',
allInOne: {
ignore: ['static/lib/**', 'node_modules/jquery/**']
}
})
})