2022-08-30 02:07:18 -05:00
|
|
|
global.__childdir = __dirname;
|
|
|
|
global.__noenv = true;
|
2020-11-02 20:14:20 +01:00
|
|
|
const webpack = require("webpack");
|
|
|
|
const path = require("path");
|
2022-08-30 02:07:18 -05:00
|
|
|
const { merge } = require("webpack-merge");
|
|
|
|
const commonConfig = require("../common.webpack.prod.config");
|
2020-11-02 20:14:20 +01:00
|
|
|
|
2022-08-30 02:07:18 -05:00
|
|
|
const config = {
|
2020-11-05 01:08:16 +05:30
|
|
|
entry: { "excalidraw-utils.min": "./index.js" },
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, "dist"),
|
|
|
|
library: "ExcalidrawUtils",
|
2020-11-02 20:14:20 +01:00
|
|
|
},
|
|
|
|
optimization: {
|
|
|
|
runtimeChunk: false,
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.optimize.LimitChunkCountPlugin({
|
|
|
|
maxChunks: 1,
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
};
|
2022-08-30 02:07:18 -05:00
|
|
|
module.exports = merge(commonConfig, config);
|