Skip to content

Commit

Permalink
fix: webpack output path (#218)
Browse files Browse the repository at this point in the history
Co-authored-by: enzo707 <[email protected]>
  • Loading branch information
Enzo707 and EnzoBatistaU authored Mar 29, 2024
1 parent dda6e02 commit c9e2ac3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const webpack = require('webpack');
const TerserPlugin = require("terser-webpack-plugin");
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const path = require('path');
let productionBuild = (process.env.NODE_ENV == "production");
let plugins = [];

Expand All @@ -21,7 +22,7 @@ module.exports = {
target: "web",
output: {
filename: productionBuild ? "librarie.min.js" : "librarie.js",
path: __dirname + "/dist/",
path: path.join(__dirname, '/dist'),
publicPath: "./dist/",
libraryTarget: "umd",
library: "LibraryEntryPoint",
Expand Down

0 comments on commit c9e2ac3

Please sign in to comment.