Compare commits
4 Commits
master
...
aakansha-s
Author | SHA1 | Date | |
---|---|---|---|
|
09daff487a | ||
|
17330c4c03 | ||
|
2a4ad6fc41 | ||
|
ec6999554a |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@excalidraw/excalidraw",
|
||||
"version": "0.2.1",
|
||||
"version": "0.2.2",
|
||||
"main": "dist/excalidraw.min.js",
|
||||
"files": [
|
||||
"dist/*"
|
||||
|
@ -2,6 +2,7 @@ const path = require("path");
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
|
||||
.BundleAnalyzerPlugin;
|
||||
const webpack = require("webpack");
|
||||
|
||||
module.exports = {
|
||||
mode: "production",
|
||||
@ -24,7 +25,16 @@ module.exports = {
|
||||
{
|
||||
test: /\.(sa|sc|c)ss$/,
|
||||
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)$/,
|
||||
@ -89,6 +99,10 @@ module.exports = {
|
||||
},
|
||||
plugins: [
|
||||
...(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: {
|
||||
react: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user