mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fix(web): build fixes after rebase
This commit is contained in:
parent
f00628f4e5
commit
d2e7c360b9
@ -2,9 +2,9 @@
|
|||||||
"name": "frigate",
|
"name": "frigate",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "cross-env SNOWPACK_PUBLIC_API_HOST=http://10.0.1.210:5000 snowpack dev",
|
"start": "cross-env SNOWPACK_PUBLIC_API_HOST=http://localhost:5000 snowpack dev",
|
||||||
"prebuild": "rimraf build",
|
"prebuild": "rimraf build",
|
||||||
"build": "cross-env NODE_ENV=production snowpack build"
|
"build": "cross-env NODE_ENV=production SNOWPACK_MODE=production SNOWPACK_PUBLIC_API_HOST='' snowpack build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prefresh/snowpack": "^3.0.1",
|
"@prefresh/snowpack": "^3.0.1",
|
||||||
|
@ -8,7 +8,7 @@ module.exports = {
|
|||||||
plugins: ['@snowpack/plugin-postcss', '@prefresh/snowpack', 'snowpack-plugin-hash'],
|
plugins: ['@snowpack/plugin-postcss', '@prefresh/snowpack', 'snowpack-plugin-hash'],
|
||||||
routes: [{ match: 'routes', src: '.*', dest: '/index.html' }],
|
routes: [{ match: 'routes', src: '.*', dest: '/index.html' }],
|
||||||
optimize: {
|
optimize: {
|
||||||
bundle: true,
|
bundle: false,
|
||||||
minify: true,
|
minify: true,
|
||||||
treeshake: true,
|
treeshake: true,
|
||||||
},
|
},
|
||||||
|
@ -34,7 +34,7 @@ export default function App() {
|
|||||||
<Event path="/events/:eventId" />
|
<Event path="/events/:eventId" />
|
||||||
<Events path="/events" />
|
<Events path="/events" />
|
||||||
<Debug path="/debug" />
|
<Debug path="/debug" />
|
||||||
{import.meta.env.SNOWPACK_MODE !== 'development' ? <StyleGuide path="/styleguide" /> : null}
|
{import.meta.env.NODE_ENV !== 'development' ? <StyleGuide path="/styleguide" /> : null}
|
||||||
<Cameras default path="/" />
|
<Cameras default path="/" />
|
||||||
</Router>
|
</Router>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user