Skip to content
Snippets Groups Projects

Use webpack for bundling JS libs and move Golang code related to Iframe generation there

Merged Igor Markin requested to merge feature-vcl-webpack-bundle into master
2 files
+ 8
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 6
0
@@ -4,10 +4,16 @@ import (
@@ -4,10 +4,16 @@ import (
"fmt"
"fmt"
"io/ioutil"
"io/ioutil"
"path/filepath"
"path/filepath"
 
"runtime"
"strings"
"strings"
)
)
func GetClientJsLibrary(iframeUrl string) string {
func GetClientJsLibrary(iframeUrl string) string {
 
_, filename, _, ok := runtime.Caller(0)
 
 
fmt.Println(filename)
 
fmt.Println(ok)
 
path, err := filepath.Abs("./javascript/dist/viamapi-client.js")
path, err := filepath.Abs("./javascript/dist/viamapi-client.js")
if err != nil {
if err != nil {
Loading