add static directory in build run

This commit is contained in:
p-wojt 2022-01-13 22:16:43 +01:00
parent e987aa13d7
commit 99d4d14235

View File

@ -1,7 +1,7 @@
{ {
"scripts": { "scripts": {
"start": "webpack-dev-server", "start": "webpack-dev-server",
"build": "webpack --config webpack.config.prod.js && cp index.html dist/index.html && cp app.css dist/app.css" "build": "webpack --config webpack.config.prod.js && cp index.html dist/index.html && cp app.css dist/app.css && cp -r static dist/static"
}, },
"author": { "author": {
"name": "Patryk Wojtiuk", "name": "Patryk Wojtiuk",