Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Aug 6, 2023
1 parent 27bedf4 commit 8397144
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 35 deletions.
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
3 changes: 1 addition & 2 deletions src/style/bootstrap.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

//
// Start bootstrap
//

@import 'bootstrap/scss/mixins/banner';
@include bsBanner("");
@include bsBanner('');

// scss-docs-start import-stack
// Configuration
Expand Down
63 changes: 31 additions & 32 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -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(),
],
});

0 comments on commit 8397144

Please sign in to comment.