Remove map files from build, relocate transpiled map files to $lib for cache improvements.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@ node_modules
|
|||||||
# Transpiled JSON
|
# Transpiled JSON
|
||||||
/static/mapFiles/json/
|
/static/mapFiles/json/
|
||||||
/static/map-index.json
|
/static/map-index.json
|
||||||
|
/src/lib/assets/route/*.json
|
||||||
|
|
||||||
# Output
|
# Output
|
||||||
.output
|
.output
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ RUN npm ci
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN node ./scripts/parse-maps.js
|
RUN node ./scripts/parse-maps.js
|
||||||
RUN rm -r ./static/mapFiles/yaml
|
RUN rm -r ./static/mapFiles
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
RUN npm prune --production
|
RUN npm prune --production
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user