@@ -38,7 +38,7 @@ func processMount(mode bool, appBaseDir, vroot, proot string, skipList ess.Exclu
3838 if mode {
3939 cliLog .Infof ("|-- Processing mount: '%s' <== '%s'" , vroot , proot )
4040 }
41- b , err := generateVFSSource (mode , vroot , proot , skipList , noGzipList )
41+ b , err := generateVFSSource (mode , appBaseDir , vroot , proot , skipList , noGzipList )
4242 if err != nil {
4343 return err
4444 }
@@ -53,7 +53,7 @@ func processMount(mode bool, appBaseDir, vroot, proot string, skipList ess.Exclu
5353// generateVFSSource method creates Virtual FileSystem (VFS) code
5454// to add files and directories within binary for configured Mount points
5555// on file aah.project.
56- func generateVFSSource (mode bool , vroot , proot string , skipList ess.Excludes , noGzipList []string ) ([]byte , error ) {
56+ func generateVFSSource (mode bool , appBaseDir , vroot , proot string , skipList ess.Excludes , noGzipList []string ) ([]byte , error ) {
5757 err := skipList .Validate ()
5858 if err != nil {
5959 return nil , err
@@ -87,7 +87,8 @@ func generateVFSSource(mode bool, vroot, proot string, skipList ess.Excludes, no
8787 fpath = filepath .ToSlash (fpath )
8888 fname := path .Base (fpath )
8989 if skipList .Match (fname ) {
90- if fname == "app" && strings .Contains (fpath , "/pages/" ) {
90+ if fname == "app" && (strings .Contains (fpath , "/pages/" ) ||
91+ fpath == filepath .ToSlash (appBaseDir )) {
9192 goto sc
9293 }
9394
0 commit comments