Skip to content

Commit

Permalink
Merge pull request #285 from armfazh/armfazh/pathWindows
Browse files Browse the repository at this point in the history
Resolve path correctly.
  • Loading branch information
ppopth committed Jan 19, 2022
2 parents 266a560 + cca763a commit 76baeea
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,12 +2,13 @@ import CopyWebpackPlugin from 'copy-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
import { fileURLToPath } from 'url';
import path from 'path';

// import buffer from "buffer";
// import streamBrowserify from "stream-browserify";

const __dirname = path.dirname(new URL(import.meta.url).pathname);
const __dirname = path.dirname(fileURLToPath(import.meta.url));

const tsloader = {
test: /\.tsx?$/,
Expand Down

0 comments on commit 76baeea

Please sign in to comment.