Build runs the webpack command with the project config.
()
| 169 | |
| 170 | // Build runs the webpack command with the project config. |
| 171 | func (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. |
| 184 | func (js Js) Serve() error { |
nothing calls this directly
no test coverage detected