Fix SDK build
This commit is contained in:
parent
83dffef47d
commit
2d8a3d9f9b
4 changed files with 14 additions and 5 deletions
|
@ -11,7 +11,7 @@ cp doc/SDK.md target/README.md
|
||||||
pushd target
|
pushd target
|
||||||
pushd asset-build/assets
|
pushd asset-build/assets
|
||||||
mv main.*.js ../../main.js
|
mv main.*.js ../../main.js
|
||||||
mv index.*.css ../../style.css
|
mv *light.*.css ../../style.css
|
||||||
mv download-sandbox.*.html ../../download-sandbox.html
|
mv download-sandbox.*.html ../../download-sandbox.html
|
||||||
rm *.js *.wasm
|
rm *.js *.wasm
|
||||||
mv ./* ../../
|
mv ./* ../../
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
<!-- this file contains all references to include in the SDK asset build (using vite.sdk-assets-config.js) -->
|
<!-- this file contains all references to include in the SDK asset build (using vite.sdk-assets-config.js) -->
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" type="text/css" href="./platform/web/ui/css/main.css">
|
|
||||||
<link rel="stylesheet" type="text/css" href="./platform/web/ui/css/themes/element/theme.css">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script type="module">
|
<script type="module">
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const mergeOptions = require('merge-options');
|
const mergeOptions = require('merge-options');
|
||||||
const commonOptions = require("./vite.common-config.js");
|
const themeBuilder = require("./scripts/build-plugins/rollup-plugin-build-themes");
|
||||||
|
const {commonOptions, compiledVariables} = require("./vite.common-config.js");
|
||||||
|
|
||||||
export default mergeOptions(commonOptions, {
|
export default mergeOptions(commonOptions, {
|
||||||
root: "src/",
|
root: "src/",
|
||||||
|
@ -8,4 +9,13 @@ export default mergeOptions(commonOptions, {
|
||||||
build: {
|
build: {
|
||||||
outDir: "../target/asset-build/",
|
outDir: "../target/asset-build/",
|
||||||
},
|
},
|
||||||
|
plugins: [
|
||||||
|
themeBuilder({
|
||||||
|
themeConfig: {
|
||||||
|
themes: { element: "./src/platform/web/ui/css/themes/element" },
|
||||||
|
default: "element",
|
||||||
|
},
|
||||||
|
compiledVariables,
|
||||||
|
}),
|
||||||
|
],
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const mergeOptions = require('merge-options');
|
const mergeOptions = require('merge-options');
|
||||||
const commonOptions = require("./vite.common-config.js");
|
const themeBuilder = require("./scripts/build-plugins/rollup-plugin-build-themes");
|
||||||
|
const {commonOptions, compiledVariables} = require("./vite.common-config.js");
|
||||||
const manifest = require("./package.json");
|
const manifest = require("./package.json");
|
||||||
|
|
||||||
const externalDependencies = Object.keys(manifest.dependencies)
|
const externalDependencies = Object.keys(manifest.dependencies)
|
||||||
|
|
Reference in a new issue