27 lines
589 B
JavaScript
27 lines
589 B
JavaScript
|
import babel from 'rollup-plugin-babel'
|
||
|
import resolve from 'rollup-plugin-node-resolve'
|
||
|
|
||
|
const path = require('path');
|
||
|
const {BUILD, MINIFY} = process.env;
|
||
|
const minified = MINIFY === 'true';
|
||
|
const production = BUILD === 'production';
|
||
|
const outFile = path.join(__dirname, 'dist/index.bundle.js');
|
||
|
|
||
|
const plugins = [
|
||
|
resolve(),
|
||
|
babel({
|
||
|
exclude:'node_modules/**'
|
||
|
})
|
||
|
];
|
||
|
|
||
|
export default {
|
||
|
input: path.join(__dirname, 'index.js'),
|
||
|
output: {
|
||
|
file: outFile,
|
||
|
format: 'umd',
|
||
|
name: 'dllcn',
|
||
|
sourcemap: false
|
||
|
},
|
||
|
plugins: plugins
|
||
|
}
|