ACE3/docs/src/rollup.config.mjs
Jo David 9641fe490b
Documentation - Improve svg handling (#9575)
* fix tabs in xm157

* use rollup, remove grunt, fix scss build

* add svg bundler. rework to use svg element instead of images
2023-10-24 14:04:58 +02:00

30 lines
672 B
JavaScript

import terser from "@rollup/plugin-terser";
import scss from "rollup-plugin-scss";
import svgicons from "rollup-plugin-svg-icons";
export default {
input: "./main.js",
output: [
{
file: "../dist/bundle.js",
},
{
file: "../dist/bundle.min.js",
format: "iife",
name: "version",
plugins: [terser()],
},
],
plugins: [
scss({
fileName: "bundle.css",
sourceMap: true,
outputStyle: "compressed",
}),
svgicons({
inputFolder: "./icons",
output: "../dist/icons.svg",
}),
],
};