modify build scripts for satellite ui (#2228)
This commit is contained in:
parent
09940d4e0b
commit
503b951bcd
@ -117,7 +117,7 @@ func NewServer(logger *zap.Logger, config Config, service *console.Service, mail
|
||||
|
||||
// appHandler is web app http handler function
|
||||
func (s *Server) appHandler(w http.ResponseWriter, req *http.Request) {
|
||||
http.ServeFile(w, req, filepath.Join(s.config.StaticDir, "dist", "public", "index.html"))
|
||||
http.ServeFile(w, req, filepath.Join(s.config.StaticDir, "dist", "index.html"))
|
||||
}
|
||||
|
||||
// bucketUsageReportHandler generate bucket usage report page for project
|
||||
|
@ -9,6 +9,5 @@
|
||||
<body style="margin: 0px !important; height: 100vh; zoom: 100%">
|
||||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
<script type="text/javascript" src="/static/dist/build.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,11 +3,11 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "rm -rf dist/ && npm run build && vue-cli-service serve -s dist",
|
||||
"serve": "vue-cli-service serve",
|
||||
"lint": "vue-cli-service lint",
|
||||
"test:unit": "vue-cli-service test:unit",
|
||||
"test": "jest",
|
||||
"build": "webpack --config webpack.config.dev.js"
|
||||
"build": "vue-cli-service build --mode=production"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/graphql": "^14.0.3",
|
||||
|
@ -9,5 +9,7 @@ module.exports = {
|
||||
args[0].template = './index.html'
|
||||
return args
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
publicPath: "/static/dist"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user