Allow simple build

This commit is contained in:
Pig Fang 2019-11-25 18:39:18 +08:00
parent d2b8835c94
commit 3d578963ea

View File

@ -1,3 +1,10 @@
param (
# Clean files and run webpack only.
[Parameter()]
[switch]
$Simple
)
# Clean files
if (Test-Path ./public/app) {
Remove-Item ./public/app -Recurse -Force
@ -6,6 +13,10 @@ if (Test-Path ./public/app) {
# Run webpack
yarn build
if ($Simple) {
exit
}
# Copy static files
Copy-Item -Path ./resources/assets/src/images/bg.jpg -Destination ./public/app
Copy-Item -Path ./resources/assets/src/images/favicon.ico -Destination ./public/app