mirror of
https://github.com/hanzoai/chartjs-plugin-stacked100.git
synced 2026-10-30 18:45:49 +00:00
23 lines
511 B
JavaScript
23 lines
511 B
JavaScript
const path = require("path");
|
|
const TerserPlugin = require("terser-webpack-plugin");
|
|
|
|
const commonConfig = require("./common.config");
|
|
|
|
module.exports = {
|
|
...commonConfig,
|
|
mode: "production",
|
|
devtool: false,
|
|
entry: "./src/index.ts",
|
|
output: {
|
|
filename: "index.js",
|
|
path: path.resolve("./build"),
|
|
library: "ChartjsPluginStacked100",
|
|
libraryTarget: "umd",
|
|
clean: true,
|
|
},
|
|
optimization: {
|
|
minimize: true,
|
|
minimizer: [new TerserPlugin({ extractComments: false })],
|
|
},
|
|
};
|