2020-03-29 18:12:35 -04:00
|
|
|
import { license, postcss, strip, terser, typescript } from './plugins';
|
2020-03-25 12:44:11 -04:00
|
|
|
|
|
|
|
const input = './src/index.ts';
|
|
|
|
const name = 'shareon';
|
|
|
|
const outputDir = './dist/';
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
input,
|
|
|
|
output: [
|
|
|
|
{
|
|
|
|
name,
|
|
|
|
format: 'cjs',
|
|
|
|
file: `${outputDir}${name}.cjs`,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name,
|
|
|
|
format: 'iife',
|
|
|
|
file: `${outputDir}${name}.min.js`,
|
|
|
|
plugins: [terser()],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
typescript(),
|
|
|
|
strip(),
|
2020-03-25 17:52:30 -04:00
|
|
|
postcss(`${outputDir}${name}.min.css`, true),
|
2020-03-29 18:12:35 -04:00
|
|
|
license()
|
2020-03-25 12:44:11 -04:00
|
|
|
],
|
|
|
|
};
|