Compare commits

...
4 Commits
2 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -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/*"
+15 -1
View File
@@ -2,6 +2,7 @@ const path = require("path");
const TerserPlugin = require("terser-webpack-plugin"); const TerserPlugin = require("terser-webpack-plugin");
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer") const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin; .BundleAnalyzerPlugin;
const webpack = require("webpack");
module.exports = { module.exports = {
mode: "production", mode: "production",
@@ -24,7 +25,16 @@ module.exports = {
{ {
test: /\.(sa|sc|c)ss$/, test: /\.(sa|sc|c)ss$/,
exclude: /node_modules/, exclude: /node_modules/,
use: ["style-loader", { loader: "css-loader" }, "sass-loader"], use: [
"style-loader",
{
loader: "css-loader",
options: {
sourceMap: false,
},
},
"sass-loader",
],
}, },
{ {
test: /\.(ts|tsx|js|jsx|mjs)$/, test: /\.(ts|tsx|js|jsx|mjs)$/,
@@ -89,6 +99,10 @@ module.exports = {
}, },
plugins: [ plugins: [
...(process.env.ANALYZER === "true" ? [new BundleAnalyzerPlugin()] : []), ...(process.env.ANALYZER === "true" ? [new BundleAnalyzerPlugin()] : []),
new webpack.SourceMapDevToolPlugin({
filename: "sourcemaps/[name].js.map",
publicPath: "https://unpkg.com/@excalidraw/excalidraw@0.2.2/dist/",
}),
], ],
externals: { externals: {
react: { react: {