2020-01-28 14:00:05 +01:00
|
|
|
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"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
});
|
2020-01-27 11:59:56 +01:00
|
|
|
|
|
|
|
export default {
|
2020-01-28 14:00:05 +01:00
|
|
|
input: "src/index.js",
|
|
|
|
output: [
|
|
|
|
{
|
|
|
|
file: "dist/index.js",
|
|
|
|
format: "esm",
|
|
|
|
name: "budibaseStandardComponents",
|
|
|
|
sourcemap: "inline"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
svelte({
|
|
|
|
hydratable: true
|
|
|
|
}),
|
|
|
|
resolve(),
|
|
|
|
postcss(postcssOptions())
|
|
|
|
]
|
2020-01-27 11:59:56 +01:00
|
|
|
};
|