| 123456789101112131415161718192021222324252627282930313233343536373839 | 
							- var merge = require('webpack-merge')
 
- var webpack = require('webpack')
 
- var path = require('path')
 
- var common = require('./webpack.common.js')
 
- var Visualizer = require('webpack-visualizer-plugin')
 
- const { CleanWebpackPlugin } = require('clean-webpack-plugin')
 
- module.exports = merge(common, {
 
-     output: {
 
-         filename: '[name].min.js',
 
-         path: path.resolve(__dirname, 'build'),
 
-         library: 'opensheetmusicdisplay',
 
-         libraryTarget: 'umd'
 
-     },
 
-     mode: 'production',
 
-     optimization: {
 
-         minimize: true
 
-         // splitChunks: {
 
-         //     chunks: 'all',
 
-         //     name: false
 
-         // }
 
-     },
 
-     plugins: [
 
-         // build optimization plugins
 
-         new CleanWebpackPlugin({
 
-             verbose: false,
 
-             dry: false,
 
-             cleanOnceBeforeBuildPatterns: ['**/*', '!statistics.html*']
 
-         }),
 
-         new webpack.LoaderOptionsPlugin({
 
-             minimize: true,
 
-             debug: true
 
-         }),
 
-         new Visualizer({
 
-             path: path.resolve(__dirname, 'build'),
 
-             filename: './statistics.html'
 
-         })
 
-     ]
 
- })
 
 
  |