del: source map from bundle

This commit is contained in:
Mykola 2023-05-09 17:55:29 +03:00
parent 97bf158b7b
commit 7325382484
3 changed files with 11 additions and 142601 deletions

3
.gitignore vendored
View File

@ -9,3 +9,6 @@ node_modules/
.env
*.pyc
/*.sqlite3
# typescrypt generated files
/app/static/js/*.d.ts

File diff suppressed because one or more lines are too long

View File

@ -1,29 +1,22 @@
//webpack.config.js
const path = require("path");
const path = require('path');
module.exports = {
mode: "development",
devtool: "inline-source-map",
entry: {
main: "./src/main.ts",
main: './src/main.ts',
},
output: {
path: path.resolve(__dirname, "./app/static/js"),
filename: "main.js", // <--- Will be compiled to this single file
path: path.resolve(__dirname, './app/static'),
filename: 'js/main.js', // <--- Will be compiled to this single file
},
resolve: {
extensions: [".ts", ".tsx", ".js"],
extensions: ['.ts', '.tsx', '.js'],
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: "ts-loader",
},
{
test: /\.css$/i,
include: path.resolve(__dirname, 'src'),
use: ['style-loader', 'css-loader', 'postcss-loader'],
loader: 'ts-loader',
},
],
},