From c3b3d5abd8212e837fe3b118d7ddeb1884ca5282 Mon Sep 17 00:00:00 2001 From: Martial Garchery Date: Mon, 26 Apr 2021 21:31:25 +0200 Subject: [PATCH] Adding normal build command --- README.md | 2 +- index.html | 2 +- package.json | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 82a1422..01be27a 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ npm run dev # launch parcel-bundler hot-reloading dev server (Until the CI is put in place): -Build the output index.html and js bundle in `docs/` with: +Build the output index.html and js bundle in `dist/` with: ``` npm run build ``` diff --git a/index.html b/index.html index abf6cd1..d071f2e 100755 --- a/index.html +++ b/index.html @@ -1,6 +1,6 @@ - + mdp diff --git a/package.json b/package.json index db3d4a7..f326f40 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "scripts": { "dev": "npx parcel index.html", - "build": "rm -rf docs/ && NODE_ENV=production NODE_PATH=. npx parcel build index.html --public-url /mdp -d docs --no-source-maps", + "build": "rm -rf dist/ && NODE_ENV=production npx parcel build ./index.html --no-source-maps --public-url ./", + "build:github": "rm -rf docs/ && NODE_ENV=production npx parcel build index.html --public-url /mdp -d docs --no-source-maps", "stylelint": "npx stylelint src/*.scss", "stylelint:vue": "npx stylelint 'src/*vue' --syntax scss", "test": "NODE_PATH=. NODE_OPTIONS=--experimental-vm-modules npx jest"