diff options
author | Alan Orth <alan.orth@gmail.com> | 2021-03-23 10:45:19 +0300 |
---|---|---|
committer | Alan Orth <alan.orth@gmail.com> | 2021-03-23 10:45:19 +0300 |
commit | 72fe18fd4d3a1b5e24b64b9ec642f23f9bbba1cf (patch) | |
tree | 615c65d05f4ce7d285f3422f4d2af0ce8ca6a6c4 | |
parent | 085cf9847fc6d844036ab52e842d69ec930172e5 (diff) |
package.json: Run webpack with npx
My local dev environment automatically adds ./node_modules/.bin to
the shell PATH, but it seems a better way to do this is to use npx
so that it works here and on the CI.
-rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index eae2d7c..2c889c1 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build:css": "sass --style expanded source/scss/style.scss assets/css/style.css.tmp && cleancss --level 1 assets/css/style.css.tmp -o assets/css/style.css", "build:rtlcss": "rtlcss -s assets/css/style.css.tmp assets/css/style.rtl.css.tmp && cleancss --level 1 assets/css/style.rtl.css.tmp -o assets/css/style.rtl.css", "build:cookieconsent": "cp node_modules/@chiiya/haven/dist/haven.umd.min.js assets/js", - "build:js": "webpack", + "build:js": "npx webpack", "build": "npm run build:css && npm run build:rtlcss && npm run build:js && npm run build:cookieconsent && npm run clean", "clean": "rm assets/css/style.css.tmp assets/css/style.css.tmp.map assets/css/style.rtl.css.tmp" }, |