1
0
Fork 0
mirror of synced 2024-07-20 21:55:54 +12:00
budibase/packages/materialdesign-components/rollup.config.js
Conor_Mack 71abc2a38d Aliasing config and additional test button component for test app (#66)
* Fix for field modal infinite render loop once closed from click away

* Added rollupgenerators to md to keep builder happy

* Beginning the button component and general setup

* Aliasing config and additional test button component for test app
2020-01-28 13:00:05 +00:00

38 lines
665 B
JavaScript

import svelte from "rollup-plugin-svelte";
import postcss from "rollup-plugin-postcss";
import resolve from "rollup-plugin-node-resolve";
import path from "path";
const postcssOptions = () => ({
extensions: [".scss", ".sass"],
extract: false,
minimize: true,
use: [
[
"sass",
{
includePaths: ["./node_modules"]
}
]
]
});
export default {
input: "src/index.js",
output: [
{
file: "dist/index.js",
format: "esm",
name: "budibaseStandardComponents",
sourcemap: "inline"
}
],
plugins: [
svelte({
hydratable: true
}),
resolve(),
postcss(postcssOptions())
]
};