mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
Fix hassio build
This commit is contained in:
parent
04f8f0f74f
commit
72e5375795
@ -22,7 +22,11 @@ const createWebpackConfig = ({
|
|||||||
isProdBuild,
|
isProdBuild,
|
||||||
latestBuild,
|
latestBuild,
|
||||||
isStatsBuild,
|
isStatsBuild,
|
||||||
|
dontHash,
|
||||||
}) => {
|
}) => {
|
||||||
|
if (!dontHash) {
|
||||||
|
dontHash = new Set();
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
mode: isProdBuild ? "production" : "development",
|
mode: isProdBuild ? "production" : "development",
|
||||||
devtool: isProdBuild ? "source-map" : "inline-cheap-module-source-map",
|
devtool: isProdBuild ? "source-map" : "inline-cheap-module-source-map",
|
||||||
@ -103,8 +107,6 @@ const createWebpackConfig = ({
|
|||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: ({ chunk }) => {
|
filename: ({ chunk }) => {
|
||||||
const dontHash = new Set();
|
|
||||||
|
|
||||||
if (!isProdBuild || dontHash.has(chunk.name)) {
|
if (!isProdBuild || dontHash.has(chunk.name)) {
|
||||||
return `${chunk.name}.js`;
|
return `${chunk.name}.js`;
|
||||||
}
|
}
|
||||||
@ -227,6 +229,7 @@ const createHassioConfig = ({ isProdBuild, latestBuild }) => {
|
|||||||
outputRoot: "",
|
outputRoot: "",
|
||||||
isProdBuild,
|
isProdBuild,
|
||||||
latestBuild,
|
latestBuild,
|
||||||
|
dontHash: new Set(["entrypoint"]),
|
||||||
});
|
});
|
||||||
|
|
||||||
config.output.path = paths.hassio_root;
|
config.output.path = paths.hassio_root;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user