build: deploy excalidraw package example (#4762)

* build: deploy excalidraw package example

* deploy public

* install deps script

* new lines
This commit is contained in:
Aakansha Doshi
2022-02-09 17:45:16 +05:30
committed by GitHub
parent 92ffe8dda6
commit ae8b1d8bf7
5 changed files with 10 additions and 3 deletions
@@ -3,6 +3,7 @@ const webpack = require("webpack");
const autoprefixer = require("autoprefixer");
const { parseEnvVariables } = require("./env");
const outputDir = process.env.EXAMPLE === "true" ? "example/public" : "dist";
module.exports = {
mode: "development",
devtool: false,
@@ -10,7 +11,7 @@ module.exports = {
"excalidraw.development": "./entry.js",
},
output: {
path: path.resolve(__dirname, "dist"),
path: path.resolve(__dirname, outputDir),
library: "Excalidraw",
libraryTarget: "umd",
filename: "[name].js",