Skip to content

Instantly share code, notes, and snippets.

@morrxy
Created February 11, 2018 02:55
Show Gist options
  • Save morrxy/036abb4f2bbbcf8eebfa73f99134fc9f to your computer and use it in GitHub Desktop.
Save morrxy/036abb4f2bbbcf8eebfa73f99134fc9f to your computer and use it in GitHub Desktop.
fis3 配置 #fis
"fis": "fis3 release -d output -c",
"fisprod": "fis3 -f fis-conf-prod.js release -d outputprod -c",

fis.set('query', 't=' + Date.now())
//当设置使用编译缓存,每个文件的编译结果均会在磁盘中保存以供下次编译使用
fis.match('::image', {
  query: '?'+fis.get('query'),
  // 开发
  // domain: "https://n.static.dwtv.tv/h5/gameshell",
  // 测试
  domain: "https://static.t.dwtv.tv/h5/gameshell",
  // 正式
  // domain: "https://n.static.dawang.tv/h5/gameshell",
})


//发布目录
fis.match('*.html', {
  deploy: fis.plugin('local-deliver', {
    to: './output'
  }),
})
fis.match('static/**', {
  deploy: fis.plugin('local-deliver', {
    to: './output'
  }),
})
.match('outputprod/**', {
  release: false
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment