mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
PushTargetRegexp: simplify code
rel to: https://github.com/kataras/iris/issues/1562#issuecomment-660415246 Former-commit-id: da04ae0543e9b743cd4989ded5983ae15316a879
This commit is contained in:
@@ -28,7 +28,9 @@ var opts = iris.DirOptions{
|
||||
// Match all js, css and ico files
|
||||
// from all files (recursively).
|
||||
// "/": regexp.MustCompile("((.*).js|(.*).css|(.*).ico)$"),
|
||||
"/": iris.MatchCommonAssets,
|
||||
// OR:
|
||||
"/": iris.MatchCommonAssets,
|
||||
"/app2/app2app3": iris.MatchCommonAssets,
|
||||
},
|
||||
Compress: true,
|
||||
ShowList: true,
|
||||
|
||||
Reference in New Issue
Block a user