fix: recursive .map
file is not deleted in build script
This commit is contained in:
parent
862c7b2fd8
commit
4a4375a796
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ RUN git clone --recurse-submodules https://github.com/cloudreve/Cloudreve.git
|
|||
# build frontend
|
||||
WORKDIR /cloudreve_builder/Cloudreve/assets
|
||||
RUN yarn install --network-timeout 1000000
|
||||
RUN yarn run build && rm -rf build/*.map
|
||||
RUN yarn run build && find . -name "*.map" -type f -delete
|
||||
|
||||
# build backend
|
||||
WORKDIR /cloudreve_builder/Cloudreve
|
||||
|
|
2
build.sh
2
build.sh
|
@ -30,7 +30,7 @@ buildAssets() {
|
|||
yarn install
|
||||
yarn run build
|
||||
cd build
|
||||
rm -rf *.map
|
||||
find . -name "*.map" -type f -delete
|
||||
cd $REPO
|
||||
zip -r - assets/build >assets.zip
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue