#!/bin/bash

echo "> Start build"

rm -rf ./dist/
mkdir -p ./dist/
export WEBPACK_ENV="prod"
export NODE_ENV="production"
npx webpack -p
cd ./dist/
mkdir -p ./dist/
find . -type f -maxdepth 1 -exec cp {} dist/ \;

echo "> Complete build"
