Clear dist dir before building for deploy.
rodzic
d55c03fcc5
commit
67d8c8f3e2
|
@ -1,4 +1,5 @@
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
|
dist-watch
|
||||||
.cache
|
.cache
|
||||||
lib/svg-vocabulary.json
|
lib/svg-vocabulary.json
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"deploy": "npm run build && gh-pages -d dist",
|
"deploy": "npm run build && gh-pages -d dist",
|
||||||
"build": "node build-vocabulary.js && parcel build index.html --public-url .",
|
"build": "node build-vocabulary.js && rm -rf dist && parcel build index.html -d dist --public-url .",
|
||||||
"watch": "node build-vocabulary.js && parcel index.html"
|
"watch": "node build-vocabulary.js && parcel index.html -d dist-watch"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
|
Ładowanie…
Reference in New Issue