начало
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
import "bootstrap"; // Подключение JS Bootstrap
|
||||
import "bootstrap-icons/font/bootstrap-icons.css";
|
||||
import "bootstrap/dist/css/bootstrap.min.css"; // Подключение стилей
|
||||
@@ -22,7 +22,6 @@
|
||||
"eslint-plugin-prettier": "5.2.3",
|
||||
"http-server": "14.1.1",
|
||||
"npm-run-all": "4.1.5",
|
||||
"vite": "6.2.0",
|
||||
"vite-plugin-static-copy": "^2.3.1"
|
||||
"vite": "6.2.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,39 +1,19 @@
|
||||
import { resolve } from "path";
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import { defineConfig } from "vite";
|
||||
import { viteStaticCopy } from "vite-plugin-static-copy";
|
||||
|
||||
export default defineConfig({
|
||||
root: "html",
|
||||
root: resolve(__dirname, "html"),
|
||||
build: {
|
||||
outDir: "dist",
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: resolve(__dirname, "html/index.html"),
|
||||
page2: resolve(__dirname, "html/account.html"),
|
||||
page3: resolve(__dirname, "html/author.html"),
|
||||
page4: resolve(__dirname, "html/manga.html"),
|
||||
page5: resolve(__dirname, "html/news.html"),
|
||||
page6: resolve(__dirname, "html/reading.html"),
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
viteStaticCopy({
|
||||
targets: [
|
||||
{
|
||||
src: "*.html", // Копируем HTML-файлы
|
||||
dest: ".", // В корень `dist/ `
|
||||
},
|
||||
{
|
||||
src: "css/style.css", // Копируем CSS
|
||||
dest: ".", // В корень `dist/`
|
||||
},
|
||||
{
|
||||
src: "img/*", // Копируем все файлы из img/
|
||||
dest: "img",
|
||||
},
|
||||
{
|
||||
src: "src/**",
|
||||
dest: "src",
|
||||
},
|
||||
{
|
||||
src: "../node_modules/bootstrap/dist/**/*",
|
||||
dest: "vendor/bootstrap",
|
||||
},
|
||||
{
|
||||
src: "../node_modules/bootstrap-icons/font/*",
|
||||
dest: "vendor/bootstrap-icons",
|
||||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user