build: deploy excalidraw package example (#4762)
* build: deploy excalidraw package example * deploy public * install deps script * new lines
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user