blog/rollup.config.mjs

20 lines
443 B
JavaScript
Raw Permalink Normal View History

2024-05-24 20:00:57 -07:00
import autoprefixer from "autoprefixer";
import postcss from "rollup-plugin-postcss";
import tailwindcss from "tailwindcss";
import postcssMinify from "postcss-minify";
import terser from "@rollup/plugin-terser";
export default {
input: "src/js/main.js",
output: {
file: "src/out/bundle.js",
},
plugins: [
postcss({
plugins: [tailwindcss, autoprefixer, postcssMinify],
extract: true,
}),
terser(),
],
};