From 8397144f1cbabbc284650eff289cbcdcea2f8ce2 Mon Sep 17 00:00:00 2001 From: Alex Rock Ancelet Date: Sun, 6 Aug 2023 20:42:11 +0200 Subject: [PATCH] Format --- src/app.html | 2 +- src/style/bootstrap.scss | 3 +- vite.config.ts | 63 ++++++++++++++++++++-------------------- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/src/app.html b/src/app.html index 496de9a..2fe5bfa 100644 --- a/src/app.html +++ b/src/app.html @@ -1,4 +1,4 @@ - + diff --git a/src/style/bootstrap.scss b/src/style/bootstrap.scss index 4647588..666c6dd 100644 --- a/src/style/bootstrap.scss +++ b/src/style/bootstrap.scss @@ -1,10 +1,9 @@ - // // Start bootstrap // @import 'bootstrap/scss/mixins/banner'; -@include bsBanner(""); +@include bsBanner(''); // scss-docs-start import-stack // Configuration diff --git a/vite.config.ts b/vite.config.ts index 5e9d2c6..46cfb55 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,32 +1,31 @@ -// @ts-ignore -import { sveltekit } from '@sveltejs/kit/vite'; -import { defineConfig } from 'vite'; -import path from 'path'; -import fs from 'fs'; - -const copyFile = function (options) { - return function () { - const targetDir = path.dirname(options.target); - if (!fs.existsSync(targetDir)){ - fs.mkdirSync(targetDir); - } - fs.writeFileSync(options.target, fs.readFileSync(options.source)); - console.info(` > Copied ${options.source} to ${options.target}.`); - }; -} - -/** @type {import('vite').UserConfig} */ -export default defineConfig({ - hmr: false, - plugins: [ - copyFile({ - source: './node_modules/bootstrap/dist/js/bootstrap.bundle.min.js', - target: './static/bootstrap.bundle.min.js', - }), - copyFile({ - source: './node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map', - target: './static/bootstrap.bundle.min.js.map', - }), - sveltekit(), - ], -}); +import { sveltekit } from '@sveltejs/kit/vite'; +import { defineConfig } from 'vite'; +import path from 'path'; +import fs from 'fs'; + +const copyFile = function (options) { + return function () { + const targetDir = path.dirname(options.target); + if (!fs.existsSync(targetDir)){ + fs.mkdirSync(targetDir); + } + fs.writeFileSync(options.target, fs.readFileSync(options.source)); + console.info(` > Copied ${options.source} to ${options.target}.`); + }; +} + +/** @type {import('vite').UserConfig} */ +export default defineConfig({ + hmr: false, + plugins: [ + copyFile({ + source: './node_modules/bootstrap/dist/js/bootstrap.bundle.min.js', + target: './static/bootstrap.bundle.min.js', + }), + copyFile({ + source: './node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map', + target: './static/bootstrap.bundle.min.js.map', + }), + sveltekit(), + ], +});