2021-12-20 19:17:31 +01:00
|
|
|
const path = require("path");
|
|
|
|
const mergeOptions = require('merge-options');
|
2022-04-13 13:42:38 +02:00
|
|
|
const themeBuilder = require("./scripts/build-plugins/rollup-plugin-build-themes");
|
|
|
|
const {commonOptions, compiledVariables} = require("./vite.common-config.js");
|
2021-12-20 19:17:31 +01:00
|
|
|
|
|
|
|
export default mergeOptions(commonOptions, {
|
|
|
|
root: "src/",
|
|
|
|
base: "./",
|
|
|
|
build: {
|
|
|
|
outDir: "../target/asset-build/",
|
|
|
|
},
|
2022-04-13 13:42:38 +02:00
|
|
|
plugins: [
|
|
|
|
themeBuilder({
|
|
|
|
themeConfig: {
|
|
|
|
themes: { element: "./src/platform/web/ui/css/themes/element" },
|
|
|
|
default: "element",
|
|
|
|
},
|
|
|
|
compiledVariables,
|
|
|
|
}),
|
|
|
|
],
|
2021-12-20 19:17:31 +01:00
|
|
|
});
|