|
1234567891011121314151617181920212223242526272829303132333435363738 |
- import resolve from 'rollup-plugin-node-resolve'
- import buble from 'rollup-plugin-buble';
- import minify from 'rollup-plugin-minify';
- import copy from 'rollup-plugin-copy';
- import includePaths from 'rollup-plugin-includepaths';
- import license from 'rollup-plugin-license';
-
- export default {
- //dest: 'dist/app.min.js',
- input: 'src/js/index.js',
- output: {
- file: 'dist/js/app.min.js',
- name: 'WBADV',
- format: 'umd',
- sourceMap: true
- },
- plugins: [
- includePaths({
- paths: ['src/js', 'src/js/widget', 'src/js/misc', 'src/js/component']
- }),
- copy({
- 'src/html/index.html': 'dist/index.html',
- 'src/css/index.css': 'dist/css/index.css',
- 'node_modules/bootstrap/dist/css/bootstrap.min.css': 'dist/css/bootstrap.min.css',
- 'node_modules/bootstrap/dist/js/bootstrap.min.js': 'dist/js/bootstrap.min.js',
- 'node_modules/jquery/dist/jquery.min.js': 'dist/js/jquery.min.js',
- verbose: true
- }),
- buble({jsx: 'h'}),
- resolve({}),
- license({
- banner: 'Copyright (C) F. Hoffmann-La Roche AG, 2020.\nAuthor: stanislaw.adaszewski@roche.com\nAll Rights Reserved.',
- }) /* ,
- minify({
- iife: 'dist/app.min.js'
- }) */
- ]
- }
|