Skip to content

Commit

Permalink
Updates (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptex authored Jan 8, 2024
1 parent 17bf887 commit a311d24
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
steps:
- checkout
- run:
name: autoreconf
command: sudo apt install automake
name: dependencies
command: sudo apt-get update -y && sudo apt-get install automake libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release xdg-utils wget libxss1
- run:
name: xss
command: sudo apt update && sudo apt install libxss1
Expand Down
21 changes: 9 additions & 12 deletions critical.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { generate } from 'critical';

generate(
{
src: 'index.html',
css: ['assets/dist/app.css'],
target: 'assets/dist/critical.css',
width: 1440,
height: 900
},
(err, { css, html, uncritical }) => {
console.log({ err, css, html, uncritical });
}
);
generate({
src: 'index.html',
css: ['assets/dist/app.css'],
target: 'assets/dist/critical.css',
width: 1440,
height: 900
}).then(({ css, html, uncritical }) => {
console.log({ css, html, uncritical })
});

0 comments on commit a311d24

Please sign in to comment.