mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 20:14:53 +01:00
22 lines
633 B
JavaScript
22 lines
633 B
JavaScript
const path = require("path");
|
|
const mergeOptions = require('merge-options');
|
|
const themeBuilder = require("./scripts/build-plugins/rollup-plugin-build-themes");
|
|
const {commonOptions, compiledVariables} = require("./vite.common-config.js");
|
|
|
|
export default mergeOptions(commonOptions, {
|
|
root: "src/",
|
|
base: "./",
|
|
build: {
|
|
outDir: "../target/asset-build/",
|
|
},
|
|
plugins: [
|
|
themeBuilder({
|
|
themeConfig: {
|
|
themes: { element: "./src/platform/web/ui/css/themes/element" },
|
|
default: "element",
|
|
},
|
|
compiledVariables,
|
|
}),
|
|
],
|
|
});
|