Allow simple build
This commit is contained in:
parent
d2b8835c94
commit
3d578963ea
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user