mirror of https://github.com/logos-co/open-law.git
del: source map from bundle
This commit is contained in:
parent
97bf158b7b
commit
7325382484
|
@ -9,3 +9,6 @@ node_modules/
|
||||||
.env
|
.env
|
||||||
*.pyc
|
*.pyc
|
||||||
/*.sqlite3
|
/*.sqlite3
|
||||||
|
|
||||||
|
# typescrypt generated files
|
||||||
|
/app/static/js/*.d.ts
|
||||||
|
|
142590
app/static/js/main.js
142590
app/static/js/main.js
File diff suppressed because one or more lines are too long
|
@ -1,29 +1,22 @@
|
||||||
//webpack.config.js
|
//webpack.config.js
|
||||||
const path = require("path");
|
const path = require('path');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: "development",
|
|
||||||
devtool: "inline-source-map",
|
|
||||||
entry: {
|
entry: {
|
||||||
main: "./src/main.ts",
|
main: './src/main.ts',
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, "./app/static/js"),
|
path: path.resolve(__dirname, './app/static'),
|
||||||
filename: "main.js", // <--- Will be compiled to this single file
|
filename: 'js/main.js', // <--- Will be compiled to this single file
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: [".ts", ".tsx", ".js"],
|
extensions: ['.ts', '.tsx', '.js'],
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.tsx?$/,
|
test: /\.tsx?$/,
|
||||||
loader: "ts-loader",
|
loader: 'ts-loader',
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.css$/i,
|
|
||||||
include: path.resolve(__dirname, 'src'),
|
|
||||||
use: ['style-loader', 'css-loader', 'postcss-loader'],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue