// Copyright 2021 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// Command static compiles TypeScript files into minified | |
// JavaScript files and creates linked sourcemaps. | |
package main | |
import ( | |
"log" | |
"golang.org/x/pkgsite/internal/static" | |
) | |
func main() { | |
_, err := static.Build(static.Config{StaticPath: "content/static", Write: true}) | |
if err != nil { | |
log.Fatal(err) | |
} | |
} |