upload sourcemaps to cdn
This commit is contained in:
parent
ec6999554a
commit
2a4ad6fc41
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@excalidraw/excalidraw",
|
"name": "@excalidraw/excalidraw",
|
||||||
"version": "0.2.1",
|
"version": "0.2.2",
|
||||||
"main": "dist/excalidraw.min.js",
|
"main": "dist/excalidraw.min.js",
|
||||||
"files": [
|
"files": [
|
||||||
"dist/*"
|
"dist/*"
|
||||||
@ -66,6 +66,7 @@
|
|||||||
"repository": "https://github.com/excalidraw/excalidraw",
|
"repository": "https://github.com/excalidraw/excalidraw",
|
||||||
"homepage": "https://github.com/excalidraw/excalidraw/tree/master/src/packages/excalidraw",
|
"homepage": "https://github.com/excalidraw/excalidraw/tree/master/src/packages/excalidraw",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build:dev": "webpack --config webpack.dev.config.js",
|
||||||
"build:umd": "cross-env NODE_ENV=production webpack --config webpack.prod.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",
|
"build:umd:withAnalyzer": "cross-env NODE_ENV=production ANALYZER=true webpack --config webpack.prod.config.js",
|
||||||
"pack": "npm run build:umd && npm pack"
|
"pack": "npm run build:umd && npm pack"
|
||||||
|
@ -100,7 +100,8 @@ module.exports = {
|
|||||||
plugins: [
|
plugins: [
|
||||||
...(process.env.ANALYZER === "true" ? [new BundleAnalyzerPlugin()] : []),
|
...(process.env.ANALYZER === "true" ? [new BundleAnalyzerPlugin()] : []),
|
||||||
new webpack.SourceMapDevToolPlugin({
|
new webpack.SourceMapDevToolPlugin({
|
||||||
filename: "[name].js.map",
|
filename: "sourcemaps/[name].js.map",
|
||||||
|
publicPath: "https://unpkg.com/@excalidraw/excalidraw@0.2.2/dist/",
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
externals: {
|
externals: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user