17 lines
391 B
JavaScript
17 lines
391 B
JavaScript
import autoprefixer from "autoprefixer";
|
|
import styles from "rollup-plugin-styles";
|
|
import { terser } from "rollup-plugin-terser";
|
|
|
|
export default {
|
|
input: "source-src/main.js",
|
|
output: {
|
|
dir: "source/dist",
|
|
format: "iife",
|
|
assetFileNames: "[name][extname]",
|
|
},
|
|
plugins: [
|
|
styles({ mode: "extract", minimize: true, plugins: [autoprefixer()] }),
|
|
terser(),
|
|
],
|
|
};
|