改写fis3-deploy-local-deliver,在导出时可以添加部分文件导出到另外的目录。以工程目录(fis-conf.js所在的文件夹)为根目录进行配置
npm install -g fis3-deploy-local-deliver-ifweb
fis.match('*', {
deploy: fis.plugin('local-deliver-ifweb', {
to: '../dev-out',
other: [
{ from:'/cssdemo/css/',
to: '../css-dev',
filter: /\.css$/ //过滤器,只有满足过滤器filter并在from下的文件会部署到to的目录下
},
{
from:'./html/',
to: '../html-dev',
filter: /\.html$/
},
{
from:'jsdemo/js',
to: '../js-dev',
filter: /\.js$/
}
],
})
})
});