Skip to content

Commit 4fa179e

Browse files
committed
chore: upgraded build process
1 parent fc309fc commit 4fa179e

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<script src="dist/src.19dfc943.js">
1+
<script src="src.19dfc943.js">
22
</script>

dist/src.19dfc943.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 14 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
"icon": "icon.svg",
88
"scripts": {
99
"test": "echo \"Error: no test specified\" && exit 1",
10-
"dev": "parcel src/index.html --hmr-hostname localhost --public-url ./dist/ -t browser",
11-
"build": "parcel build src/index.html --public-url ./dist/ -t browser"
10+
"clean": "rimraf dist",
11+
"prestart": "npm run clean",
12+
"start": "parcel src/index.html --hmr-hostname localhost --public-url ./ -t browser",
13+
"build": "tsc && npm run clean && parcel build src/index.html --public-url ./ -t browser"
1214
},
1315
"settings": {
1416
"address": {
@@ -43,6 +45,7 @@
4345
"eslint-plugin-prettier": "^3.3.1",
4446
"parcel-bundler": "^1.12.4",
4547
"prettier": "^2.2.1",
48+
"rimraf": "^3.0.2",
4649
"typescript": "^4.1.3"
4750
},
4851
"dependencies": {

0 commit comments

Comments
 (0)