diff --git a/package.json b/package.json index 3cd3a3a..c5da44c 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,7 @@ "css-loader": "^5.2.1", "date-fns": "^2.21.1", "html-webpack-plugin": "^5.3.1", - "less": "^4.1.1", - "less-loader": "^8.1.0", "mini-css-extract-plugin": "^1.4.1", - "moment": "^2.29.1", "node-sass": "^5.0.0", "prismjs": "^1.23.0", "sass-loader": "^11.0.1", diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..3ae47c3 --- /dev/null +++ b/readme.md @@ -0,0 +1,17 @@ +# VaultUI + +This is a very simple UI for working with secrets in [Hashicorp Vault](https://www.hashicorp.com/products/vault) + +## How to build: +``` +npm install --save-dev +npx webpack +``` +The resulting built files will be in `dist/` + +## How to run in development: +Use whatever browser you want, I personally test on latest Microsoft Edge Dev build. +``` +npm install --save-dev +WEBPACK_MODE=development BROWSER=google-chrome npx webpack serve +``` \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index 5c4f7cf..d7006cc 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -11,7 +11,7 @@ module.exports = { }, plugins: [new MiniCssExtractPlugin(), new HtmlWebpackPlugin({ title: "VaultUI" })], devServer: { - open: 'microsoft-edge-dev', + open: process.env.BROWSER || "microsoft-edge-dev", }, resolve: { modules: ['node_modules'],