MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Build

Method Build

tools/mage/js.go:171–181  ·  view source on GitHub ↗

Build runs the webpack command with the project config.

()

Source from the content-addressed store, hash-verified

169
170// Build runs the webpack command with the project config.
171func (js Js) Build() error {
172 mg.Deps(js.Deps, js.BackendTranslations)
173 ci := os.Getenv("CI")
174 if ci != "true" {
175 mg.Deps(js.BuildDll)
176 }
177 if mg.Verbose() {
178 fmt.Println("Running Webpack")
179 }
180 return js.runWebpack("config/webpack.config.babel.js")
181}
182
183// Serve runs webpack-dev-server.
184func (js Js) Serve() error {

Callers

nothing calls this directly

Calls 2

runWebpackMethod · 0.95
DepsMethod · 0.45

Tested by

no test coverage detected