upload sourcemaps to cdn

This commit is contained in:
Aakansha Doshi 2021-01-20 21:20:28 +05:30
parent ec6999554a
commit 2a4ad6fc41
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@excalidraw/excalidraw",
"version": "0.2.1",
"version": "0.2.2",
"main": "dist/excalidraw.min.js",
"files": [
"dist/*"
@ -66,6 +66,7 @@
"repository": "https://github.com/excalidraw/excalidraw",
"homepage": "https://github.com/excalidraw/excalidraw/tree/master/src/packages/excalidraw",
"scripts": {
"build:dev": "webpack --config webpack.dev.config.js",
"build:umd": "cross-env NODE_ENV=production webpack --config webpack.prod.config.js",
"build:umd:withAnalyzer": "cross-env NODE_ENV=production ANALYZER=true webpack --config webpack.prod.config.js",
"pack": "npm run build:umd && npm pack"

View File

@ -100,7 +100,8 @@ module.exports = {
plugins: [
...(process.env.ANALYZER === "true" ? [new BundleAnalyzerPlugin()] : []),
new webpack.SourceMapDevToolPlugin({
filename: "[name].js.map",
filename: "sourcemaps/[name].js.map",
publicPath: "https://unpkg.com/@excalidraw/excalidraw@0.2.2/dist/",
}),
],
externals: {