mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
9641fe490b
* fix tabs in xm157 * use rollup, remove grunt, fix scss build * add svg bundler. rework to use svg element instead of images
30 lines
672 B
JavaScript
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",
|
|
}),
|
|
],
|
|
};
|