[ci] format
This commit is contained in:
parent
763ff2d1e4
commit
dd8dd6b31e
3 changed files with 4 additions and 8 deletions
|
@ -466,7 +466,6 @@ export interface AstroUserConfig {
|
||||||
*/
|
*/
|
||||||
site?: string;
|
site?: string;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @docs
|
* @docs
|
||||||
* @name compressHTML
|
* @name compressHTML
|
||||||
|
|
|
@ -227,10 +227,7 @@ export function createRelativeSchema(cmd: string, fileProtocolRoot: URL) {
|
||||||
.string()
|
.string()
|
||||||
.default(ASTRO_CONFIG_DEFAULTS.srcDir)
|
.default(ASTRO_CONFIG_DEFAULTS.srcDir)
|
||||||
.transform((val) => new URL(appendForwardSlash(val), fileProtocolRoot)),
|
.transform((val) => new URL(appendForwardSlash(val), fileProtocolRoot)),
|
||||||
compressHTML: z
|
compressHTML: z.boolean().optional().default(ASTRO_CONFIG_DEFAULTS.compressHTML),
|
||||||
.boolean()
|
|
||||||
.optional()
|
|
||||||
.default(ASTRO_CONFIG_DEFAULTS.compressHTML),
|
|
||||||
publicDir: z
|
publicDir: z
|
||||||
.string()
|
.string()
|
||||||
.default(ASTRO_CONFIG_DEFAULTS.publicDir)
|
.default(ASTRO_CONFIG_DEFAULTS.publicDir)
|
||||||
|
|
|
@ -17,8 +17,8 @@ function removeDoctypeLine(html) {
|
||||||
* In the dev environment, two more script tags will be injected than in the production environment
|
* In the dev environment, two more script tags will be injected than in the production environment
|
||||||
* so that we can check if the rest of the HTML is without whitespace
|
* so that we can check if the rest of the HTML is without whitespace
|
||||||
*/
|
*/
|
||||||
function removeDoctypeLineInDev(html){
|
function removeDoctypeLineInDev(html) {
|
||||||
return html.slice(-100)
|
return html.slice(-100);
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('HTML minification', () => {
|
describe('HTML minification', () => {
|
||||||
|
@ -63,7 +63,7 @@ describe('HTML minification', () => {
|
||||||
fixture = await loadFixture({
|
fixture = await loadFixture({
|
||||||
root: './fixtures/minification-html/',
|
root: './fixtures/minification-html/',
|
||||||
output: 'server',
|
output: 'server',
|
||||||
adapter: testAdapter()
|
adapter: testAdapter(),
|
||||||
});
|
});
|
||||||
await fixture.build();
|
await fixture.build();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue