diff options
author | ache <ache@ache.one> | 2018-04-13 12:03:50 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2018-04-13 12:03:50 +0200 |
commit | 87f66c324c537b4dd550e87444d4903713d13211 (patch) | |
tree | 0959be3c0141b1abc0002d74ec293fd0254a4226 /rollup.config.js | |
parent | tohtml is now in a new file (diff) |
Creation d'un package rollup Buddle Web Editor
Diffstat (limited to 'rollup.config.js')
-rw-r--r-- | rollup.config.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/rollup.config.js b/rollup.config.js new file mode 100644 index 0000000..20621c9 --- /dev/null +++ b/rollup.config.js @@ -0,0 +1,33 @@ +import uglify from 'rollup-plugin-uglify' +import builtins from 'rollup-plugin-node-builtins' +import json from 'rollup-plugin-json' +import commonjs from 'rollup-plugin-commonjs' +import resolve from 'rollup-plugin-node-resolve' +import globals from 'rollup-plugin-node-globals' + + + +export default { + input: 'tohtml.js', + output: { + file: 'public/js/hmd.min.js', + format: 'iife', + sourcemap: 'inline', + name: 'hmd' + }, + plugins: [ + resolve({ + jsnext: true, + browser: true, + main: true, + }), + commonjs(), + builtins(), + json({ + preferConst: true, + }), + globals(), + uglify(), + ] +}; + |