Skip to content

Commit

Permalink
Move captive portal into workspace/packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz committed Apr 18, 2024
1 parent 6403696 commit fb18305
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 117 deletions.
107 changes: 0 additions & 107 deletions captive-portal/dist/captive_index.h

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "esphome-captive_portal",
"name": "@esphome-webserver/captive-portal",
"version": "2.0.0",
"main": "main.ts",
"license": "MIT",
Expand All @@ -8,7 +8,7 @@
"dev": "vite",
"build": "vite build && npm run deploy",
"serve": "vite preview",
"deploy": "bash -c '../scripts/make_header.sh dist captive_index.h captive_portal'"
"deploy": "bash -c '../../scripts/make_header.sh ../../_static/captive_portal captive_index.h captive_portal'"
},
"dependencies": {
"rollup-plugin-generate-html-template": "^1.7.0",
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from "vite";
import gzipPlugin from "rollup-plugin-gzip";
import { viteSingleFile } from 'vite-plugin-singlefile'
import { viteSingleFile } from "vite-plugin-singlefile";

import minifyHTML from "rollup-plugin-minify-html-template-literals";
import { minifyHtml as ViteMinifyHtml } from "vite-plugin-html";
Expand All @@ -13,19 +13,19 @@ export default defineConfig({
ViteMinifyHtml(),
{
...gzipPlugin({ filter: /\.(html)$/ }),
enforce: "post",
apply: "build",
},
enforce: "post",
apply: "build",
},
],
css: {
postcss: {
},
},
postcss: {},
},
build: {
brotliSize: false,
cssCodeSplit: false,
outDir: "../../_static/captive_portal",
assetsInlineLimit: 100000000,
polyfillModulePreload: false
polyfillModulePreload: false,
},
server: {
open: "/", // auto open browser
Expand Down

0 comments on commit fb18305

Please sign in to comment.