UNPKG

@vuesimple/vs-select

Version:

A simple vue select. Perfect for all your select scenarios.

32 lines (27 loc) 613 B
import { terser } from 'rollup-plugin-terser'; import buble from '@rollup/plugin-buble'; import image from '@rollup/plugin-image'; import vue from 'rollup-plugin-vue'; import minimist from 'minimist'; const argv = minimist(process.argv.slice(2)); const config = { input: 'src/index.js', output: { name: 'VsSelect', exports: 'named', }, plugins: [ vue({ css: true, compileTemplate: true, needMap: false, }), buble(), image(), ], }; // Only minify browser (iife) version if (argv.format === 'iife') { config.plugins.push(terser()); } export default config;