Prettier!
This commit is contained in:
@@ -68,7 +68,6 @@ steps:
|
|||||||
when:
|
when:
|
||||||
- status: [failure]
|
- status: [failure]
|
||||||
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
image: node:22-alpine
|
image: node:22-alpine
|
||||||
commands:
|
commands:
|
||||||
|
|||||||
@@ -9,12 +9,12 @@ export default [
|
|||||||
globals: {
|
globals: {
|
||||||
window: 'readonly',
|
window: 'readonly',
|
||||||
document: 'readonly',
|
document: 'readonly',
|
||||||
dataLayer: 'writable',
|
dataLayer: 'writable'
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }]
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
prettierConfig,
|
prettierConfig
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -2,7 +2,14 @@
|
|||||||
* Build script: copy src → dist, minify JS/CSS, inline critical CSS (Critters).
|
* Build script: copy src → dist, minify JS/CSS, inline critical CSS (Critters).
|
||||||
* Run with: pnpm build
|
* Run with: pnpm build
|
||||||
*/
|
*/
|
||||||
import { rmSync, mkdirSync, readFileSync, writeFileSync, cpSync, readdirSync } from 'fs'
|
import {
|
||||||
|
rmSync,
|
||||||
|
mkdirSync,
|
||||||
|
readFileSync,
|
||||||
|
writeFileSync,
|
||||||
|
cpSync,
|
||||||
|
readdirSync
|
||||||
|
} from 'fs'
|
||||||
import { join, dirname, extname } from 'path'
|
import { join, dirname, extname } from 'path'
|
||||||
import { fileURLToPath } from 'url'
|
import { fileURLToPath } from 'url'
|
||||||
import Critters from 'critters'
|
import Critters from 'critters'
|
||||||
@@ -53,7 +60,7 @@ async function main() {
|
|||||||
const critters = new Critters({
|
const critters = new Critters({
|
||||||
path: distDir,
|
path: distDir,
|
||||||
preload: 'default',
|
preload: 'default',
|
||||||
logLevel: 'warn',
|
logLevel: 'warn'
|
||||||
})
|
})
|
||||||
const indexPath = join(distDir, 'index.html')
|
const indexPath = join(distDir, 'index.html')
|
||||||
const html = readFileSync(indexPath, 'utf8')
|
const html = readFileSync(indexPath, 'utf8')
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
(function () {
|
;(function () {
|
||||||
var script = document.currentScript;
|
var script = document.currentScript
|
||||||
var id = script && script.getAttribute('data-ga-id');
|
var id = script && script.getAttribute('data-ga-id')
|
||||||
if (!id) return;
|
if (!id) return
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.dataLayer = window.dataLayer || []
|
||||||
function gtag() {
|
function gtag() {
|
||||||
window.dataLayer.push(arguments);
|
window.dataLayer.push(arguments)
|
||||||
}
|
}
|
||||||
gtag('js', new Date());
|
gtag('js', new Date())
|
||||||
gtag('config', id, { anonymize_ip: true });
|
gtag('config', id, { anonymize_ip: true })
|
||||||
})();
|
})()
|
||||||
|
|||||||
@@ -2,14 +2,24 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- Google tag (gtag.js) -->
|
<!-- Google tag (gtag.js) -->
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4000VNMXLK"></script>
|
<script
|
||||||
<script defer src="/assets/js/ga-init.js" data-ga-id="G-4000VNMXLK"></script>
|
async
|
||||||
|
src="https://www.googletagmanager.com/gtag/js?id=G-4000VNMXLK"
|
||||||
|
></script>
|
||||||
|
<script
|
||||||
|
defer
|
||||||
|
src="/assets/js/ga-init.js"
|
||||||
|
data-ga-id="G-4000VNMXLK"
|
||||||
|
></script>
|
||||||
|
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||||
|
|
||||||
<title>mifi.holdings</title>
|
<title>mifi.holdings</title>
|
||||||
<meta name="description" content="This is just a landing page so something exists at the root domain of all the digital holdings of mifi." />
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="This is just a landing page so something exists at the root domain of all the digital holdings of mifi."
|
||||||
|
/>
|
||||||
<link rel="canonical" href="https://mifi.holdings" />
|
<link rel="canonical" href="https://mifi.holdings" />
|
||||||
<meta name="robots" content="index, follow" />
|
<meta name="robots" content="index, follow" />
|
||||||
<meta name="author" content="mifi" />
|
<meta name="author" content="mifi" />
|
||||||
@@ -18,7 +28,11 @@
|
|||||||
|
|
||||||
<link rel="icon" type="image/svg+xml" href="/assets/images/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/assets/images/favicon.svg" />
|
||||||
<link rel="icon" type="image/x-icon" href="/assets/images/favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="/assets/images/favicon.ico" />
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/assets/images/apple-touch-icon.png" />
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="180x180"
|
||||||
|
href="/assets/images/apple-touch-icon.png"
|
||||||
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ export default {
|
|||||||
extends: ['stylelint-config-standard'],
|
extends: ['stylelint-config-standard'],
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
files: ['src/**/*.css'],
|
files: ['src/**/*.css']
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user