juijs-chart
Version:
SVG-based JUI chart that can be used in the browser and Node.js. Support many types of charts. (Dashboard, Map, Topology, Full 3D)
37 lines (36 loc) • 900 B
JavaScript
const path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const entry = path.resolve(__dirname, 'bundles', 'production.js');
module.exports = {
mode: 'production',
entry: {
'jui-chart': entry,
'jui-chart.min': entry
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js'
},
optimization: {
minimizer: [
new UglifyJsPlugin({
include: /\.min\.js$/
})
]
},
module: {
rules: [{
test: /\.js$/,
use: [{
loader: 'babel-loader',
options: {
presets: [ 'env' ]
}
}]
}]
},
plugins: [
new BundleAnalyzerPlugin()
]
}