* [v0.1.0] Major Refactor - Remove moment and Snap dependencies - Use Rollup as build tool - Use Prettier for linting/styling - Use Jest for testing - Use yarn * Change Bar hover behaviour, Bar animation * Corner radius configurable
26 lines
499 B
JavaScript
26 lines
499 B
JavaScript
import sass from 'rollup-plugin-sass';
|
|
import uglify from 'rollup-plugin-uglify';
|
|
import merge from 'deepmerge';
|
|
|
|
const dev = {
|
|
input: 'src/index.js',
|
|
output: {
|
|
name: 'Gantt',
|
|
file: 'dist/frappe-gantt.js',
|
|
format: 'iife'
|
|
},
|
|
plugins: [
|
|
sass({
|
|
output: 'dist/frappe-gantt.css'
|
|
})
|
|
]
|
|
};
|
|
const prod = merge(dev, {
|
|
output: {
|
|
file: 'dist/frappe-gantt.min.js'
|
|
},
|
|
plugins: [uglify()]
|
|
});
|
|
|
|
export default [dev, prod];
|