Skip to content

Commit

Permalink
Merge pull request #5 from flameshikari/dev
Browse files Browse the repository at this point in the history
merge dev into master
  • Loading branch information
flameshikari authored Jul 23, 2024
2 parents caadad1 + 8e1874c commit ba4d896
Show file tree
Hide file tree
Showing 187 changed files with 435 additions and 657 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ RUN npm install -d --no-package-lock
COPY . .
RUN npm run build

FROM erseco/alpine-php-webserver:latest AS release
RUN rm -rf /var/www/html/* && \
echo 'short_open_tag = On' >> /etc/php83/conf.d/custom.ini && \
sed -i 's|$uri/|$uri/ $uri.html|; s|fastcgi_index.*|expires 7d;|; s/ico|xml/ico|xml|txt/' /etc/nginx/nginx.conf

FROM erseco/alpine-php-webserver:3.20.4 AS release
USER root
RUN apk add --no-cache bash && \
rm -rf /var/www/html/*
COPY ./docker/docker_setup.sh /setup.sh
COPY ./docker/populate_cache.sh /usr/bin/populate
RUN bash /setup.sh && \
chmod +x /usr/bin/populate
COPY --chown=nobody:nobody --from=build /app/public/. /var/www/html
USER nobody
Binary file added client/images/notes/blaz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</fieldset>

<fieldset class="col-12 cell glyphs">
<legend>Glyphs <span id="company-legend"></span></legend>
<legend>Glyphs <span id="dev-legend"></span></legend>
<img id="uppercase">
<br>
<img id="lowercase">
Expand Down
21 changes: 12 additions & 9 deletions client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,25 @@ const esbuildOpts = {
bundle: true,
treeShaking: true,
write: true,
legalComments: 'none',
assetNames: '[name]',
chunkNames: 'assets/[name]-[hash]',
};

const minifyOptions = {
collapseBooleanAttributes: true,
collapseWhitespace: true,
decodeEntities: true,
html5: false,
minifyURLs: true,
removeComments: true,
removeAttributeQuotes: true,
normalizeAttributeValues: true,
removeEmptyAttributes: true,
removeRedundantAttributes: true,
sortClassName: true,
collapseAttributeWhitespace: true,
removeRedundantAttributes: false,
deduplicateAttributeValues: true,
minifyUrls: true,
sortAttributes: true,
sortAttributesWithLists: 'alphabetical',
collapseWhitespace: 'conservative',
removeComments: 'safe',
minifyConditionalComments: true,
removeOptionalTags: true,
removeAttributeQuotes: true,
};


Expand Down
Loading

0 comments on commit ba4d896

Please sign in to comment.