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