diff options
| author | Adam Harvey <adam@ahprojects.com> | 2019-06-05 10:44:12 -0500 |
|---|---|---|
| committer | Adam Harvey <adam@ahprojects.com> | 2019-06-05 10:44:12 -0500 |
| commit | b3ed0f95eb94a4e7cb5e137bb8196db8c36aa50d (patch) | |
| tree | 8eb5ce503f805bbd58c4565cd845ac196b1a30dd /site/public/assets/demo/cloud/rollup.config.js | |
| parent | 7919ecc1a760f611efbe1283096482a8ec99efef (diff) | |
fix?
Diffstat (limited to 'site/public/assets/demo/cloud/rollup.config.js')
| -rw-r--r-- | site/public/assets/demo/cloud/rollup.config.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/site/public/assets/demo/cloud/rollup.config.js b/site/public/assets/demo/cloud/rollup.config.js new file mode 100644 index 00000000..57415169 --- /dev/null +++ b/site/public/assets/demo/cloud/rollup.config.js @@ -0,0 +1,25 @@ +import buble from 'rollup-plugin-buble'; +import minify from 'rollup-plugin-babel-minify'; +import path from 'path'; + +import {main} from './package.json'; + +let globals = { + 'three': 'THREE', + 'three.texttexture': 'THREE.TextTexture', +}; + +export default { + input: 'src/index.js', + external: Object.keys(globals), + output: { + file: main, + format: 'umd', + name: path.basename(main, path.extname(main)), + globals, + }, + plugins: [ + buble({objectAssign: 'Object.assign'}), + minify({comments: false}), + ], +}; |
