mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
refactor(web): use snowpack-plugin-hash
This commit is contained in:
parent
d51e9446ff
commit
a99f360a64
6911
web/package-lock.json
generated
6911
web/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -4,12 +4,11 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "cross-env SNOWPACK_PUBLIC_API_HOST=http://localhost:5000 snowpack dev",
|
"start": "cross-env SNOWPACK_PUBLIC_API_HOST=http://localhost:5000 snowpack dev",
|
||||||
"prebuild": "rimraf build",
|
"prebuild": "rimraf build",
|
||||||
"build": "snowpack build"
|
"build": "cross-env NODE_ENV=production snowpack build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prefresh/snowpack": "^3.0.1",
|
"@prefresh/snowpack": "^3.0.1",
|
||||||
"@snowpack/plugin-postcss": "^1.1.0",
|
"@snowpack/plugin-postcss": "^1.1.0",
|
||||||
"@snowpack/plugin-webpack": "^2.3.0",
|
|
||||||
"autoprefixer": "^10.2.1",
|
"autoprefixer": "^10.2.1",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"immer": "^8.0.1",
|
"immer": "^8.0.1",
|
||||||
@ -19,6 +18,7 @@
|
|||||||
"preact-router": "^3.2.1",
|
"preact-router": "^3.2.1",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"snowpack": "^3.0.11",
|
"snowpack": "^3.0.11",
|
||||||
|
"snowpack-plugin-hash": "^0.14.2",
|
||||||
"tailwindcss": "^2.0.2"
|
"tailwindcss": "^2.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,21 +5,17 @@ module.exports = {
|
|||||||
public: { url: '/', static: true },
|
public: { url: '/', static: true },
|
||||||
src: { url: '/dist' },
|
src: { url: '/dist' },
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: ['@snowpack/plugin-postcss', '@prefresh/snowpack', 'snowpack-plugin-hash'],
|
||||||
'@snowpack/plugin-postcss',
|
|
||||||
'@prefresh/snowpack',
|
|
||||||
[
|
|
||||||
'@snowpack/plugin-webpack',
|
|
||||||
{
|
|
||||||
sourceMap: true,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
],
|
|
||||||
routes: [{ match: 'routes', src: '.*', dest: '/index.html' }],
|
routes: [{ match: 'routes', src: '.*', dest: '/index.html' }],
|
||||||
|
optimize: {
|
||||||
|
bundle: true,
|
||||||
|
minify: true,
|
||||||
|
treeshake: true,
|
||||||
|
},
|
||||||
packageOptions: {
|
packageOptions: {
|
||||||
sourcemap: false,
|
sourcemap: false,
|
||||||
},
|
},
|
||||||
buildOptions: {
|
buildOptions: {
|
||||||
sourcemap: true,
|
sourcemap: false,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user