daydream

A small matrix web client written in rust
git clone git://archive.git.mtrnord.blog/daydream-mx/daydream.git
Log | Files | Refs | README | LICENSE

commit b65ab647a3a3e3563f22fe34d966e2e4d1f277e5
parent 2c5b078f14b8bba9f0ef9724581fdf2242cced0e
Author: Marcel <mtrnord1@gmail.com>
Date:   Thu, 11 Jun 2020 16:57:55 +0200

Disable webpack watch in dev mode

Took 3 minutes

Diffstat:
M.github/workflows/test.yml | 2+-
Mpackage.json | 2+-
Mwebpack.config.js | 4++--
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml @@ -48,7 +48,7 @@ jobs: run: cargo i18n || exit 0 - name: Build - run: source emsdk-master/emsdk_env.sh && yarn run dev + run: source emsdk-master/emsdk_env.sh && yarn run build:dev - name: Install matrix-test-server run: | diff --git a/package.json b/package.json @@ -3,7 +3,7 @@ "scripts": { "test": "wasm-pack test --firefox --headless", "tarpaulin-test": "cargo tarpaulin -v", - "dev": "webpack --mode development", + "build:dev": "webpack --mode development", "build": "webpack --mode production", "start:dev": "webpack-dev-server --mode development", "start:prod": "webpack-dev-server --mode production" diff --git a/webpack.config.js b/webpack.config.js @@ -62,7 +62,7 @@ module.exports = (env, argv) => { new HtmlWebpackPlugin({ template: path.resolve(__dirname, "static/index.html") }) - ], - watch: argv.mode !== 'production' + ] + //watch: argv.mode !== 'production' }; };