forked from ritz078/embed-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.es2015.config.js
More file actions
32 lines (28 loc) · 833 Bytes
/
rollup.es2015.config.js
File metadata and controls
32 lines (28 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var commonjs = require('rollup-plugin-commonjs');
var npm = require('rollup-plugin-npm');
var pkg = require('./package.json');
var banner = "/*\n" +
" * " + pkg.name + " - v"+ pkg.version +"\n" +
" * " + pkg.description +"\n" +
" * " + pkg.homepage +"\n" +
" *\n" +
" * Made by "+ pkg.author.name +"\n" +
" * Under "+ pkg.license +" License\n" +
" */\n";
var config = {
entry : 'src/js/main.js',
dest : 'dist/embed.es2015.js',
format : 'es',
banner : banner,
sourceMap : true,
plugins: [
npm({
jsnext : true,
main : true
}),
commonjs({
include: 'node_modules/**'
})
]
};
module.exports = config;