mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-06 05:46:26 +00:00
* chore: Dedupe package dependencies and webpack configs. * Fully dedupe `src/packages` via symlinks * Merge https://github.com/excalidraw/excalidraw into dedupe-package-deps-configs * fix: Link `tsc` so `build:example` works in @excalidraw/excalidraw * @excalidraw/plugins: Revert the `yarn.lock` deduping. * Drop yarn commands from the root `package.json`. * Remove more unneeded `package.json` additions. * One more change to drop in `package.json` files. * Deduping: Move even more into common webpack configs. * renaming Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
24 lines
580 B
JavaScript
24 lines
580 B
JavaScript
global.__childdir = __dirname;
|
|
global.__noenv = true;
|
|
const webpack = require("webpack");
|
|
const path = require("path");
|
|
const { merge } = require("webpack-merge");
|
|
const commonConfig = require("../common.webpack.prod.config");
|
|
|
|
const config = {
|
|
entry: { "excalidraw-utils.min": "./index.js" },
|
|
output: {
|
|
path: path.resolve(__dirname, "dist"),
|
|
library: "ExcalidrawUtils",
|
|
},
|
|
optimization: {
|
|
runtimeChunk: false,
|
|
},
|
|
plugins: [
|
|
new webpack.optimize.LimitChunkCountPlugin({
|
|
maxChunks: 1,
|
|
}),
|
|
],
|
|
};
|
|
module.exports = merge(commonConfig, config);
|