Use WebPack for production build (#2930)
This commit is contained in:
parent
f8d21396ba
commit
ef79937751
5 changed files with 9835 additions and 5303 deletions
|
@ -212,9 +212,10 @@
|
|||
<value>href="${resourceUrl}/</value>
|
||||
</replacement>
|
||||
<replacement>
|
||||
<token><![CDATA[</body>]]></token>
|
||||
<token><![CDATA[<body style="height: 100%;">]]></token>
|
||||
<value xml:space="preserve">
|
||||
<![CDATA[
|
||||
<body style="height: 100%;">
|
||||
<script id="environment" type="application/json">
|
||||
{
|
||||
"loginRealm": "${loginRealm!"master"}",
|
||||
|
@ -228,7 +229,6 @@
|
|||
"isRunningAsTheme": true
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
]]>
|
||||
</value>
|
||||
</replacement>
|
||||
|
|
15110
package-lock.json
generated
15110
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -54,6 +54,7 @@
|
|||
"@snowpack/plugin-postcss": "^1.4.3",
|
||||
"@snowpack/plugin-react-refresh": "^2.5.0",
|
||||
"@snowpack/plugin-typescript": "^1.2.1",
|
||||
"@snowpack/plugin-webpack": "^3.0.0",
|
||||
"@testing-library/cypress": "^8.0.3",
|
||||
"@testing-library/jest-dom": "^5.16.4",
|
||||
"@testing-library/react": "^12.1.5",
|
||||
|
|
|
@ -25,6 +25,17 @@ export default {
|
|||
},
|
||||
plugins: [
|
||||
"@snowpack/plugin-postcss",
|
||||
[
|
||||
"@snowpack/plugin-webpack",
|
||||
{
|
||||
outputPattern: {
|
||||
css: "[name].[contenthash].css",
|
||||
},
|
||||
extendConfig: {
|
||||
output: { publicPath: "auto", path: path.resolve(".", "build") },
|
||||
},
|
||||
},
|
||||
],
|
||||
"@snowpack/plugin-react-refresh",
|
||||
"@snowpack/plugin-typescript",
|
||||
],
|
||||
|
@ -38,11 +49,6 @@ export default {
|
|||
}),
|
||||
},
|
||||
],
|
||||
optimize: {
|
||||
bundle: true,
|
||||
splitting: true,
|
||||
minify: true,
|
||||
},
|
||||
devOptions: {
|
||||
hmrErrorOverlay: false,
|
||||
},
|
||||
|
|
|
@ -226,9 +226,10 @@ export const LocalizationTab = ({ save, realm }: LocalizationTabProps) => {
|
|||
) => {
|
||||
setTableRows((prev) => {
|
||||
const newRows = cloneDeep(prev);
|
||||
(
|
||||
newRows[rowIndex]?.cells?.[cellIndex] as IEditableTextCell
|
||||
).props.editableValue = newValue;
|
||||
const textCell = newRows[rowIndex]?.cells?.[
|
||||
cellIndex
|
||||
] as IEditableTextCell;
|
||||
textCell.props.editableValue = newValue;
|
||||
return newRows;
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue