mirror of
https://github.com/youwen5/blog.git
synced 2024-11-25 02:13:50 -08:00
20 lines
443 B
JavaScript
20 lines
443 B
JavaScript
|
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(),
|
||
|
],
|
||
|
};
|