package.webpack.config.jquery.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ibm-gantt-chart Show documentation
Show all versions of ibm-gantt-chart Show documentation
IBM Gantt Chart Component, integrable in Vanilla, jQuery, or React Framework.
The newest version!
/* eslint-disable import/no-extraneous-dependencies */
const configure = require('gda-scripts/config/webpack.configure');
const common = require('./webpack.common.js');
const pkg = require('./package.json');
const { webpack = {}, ...base } = common;
module.exports = configure(pkg, {
...base,
mode: 'production',
input: './src/index-jquery',
outputSuffix: '-jquery',
// library: 'Gantt', // TODO Gantt.default instead :-(
sourcemap: true,
minimize: false,
webpack: {
...webpack,
externals: {
...(webpack.externals || {}),
'datatables.net': 'datatables.net',
'datatables.net-dt': 'datatables.net-dt',
jquery: 'jQuery',
vis: 'vis',
},
},
});