Skip to content

Commit

Permalink
webpack: add non-dev build config
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Mar 12, 2022
1 parent 7c257a3 commit ecbd7f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Self-service configuration for JupyterHub",
"main": "index.js",
"scripts": {
"dev": "webpack --mode development"
"build": "webpack",
"dev": "webpack --mode development --watch"
},
"repository": {
"type": "git",
Expand Down
2 changes: 0 additions & 2 deletions frontend/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ module.exports = {
path: path.resolve(__dirname, "../jupyterhub_configurator/static"),
hashFunction: "xxhash64"
},
mode: "development",
watch: false,
devServer: {
hot: true,
},
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

jsdeps = npm_builder(
path="frontend",
build_cmd="dev",
build_cmd="build",
build_dir=os.path.join("jupyterhub_configurator", "static"),
source_dir="frontend",
# TODO: jupyter-packaging should autodetect whether to build/rebuild
Expand Down

0 comments on commit ecbd7f3

Please sign in to comment.