Add source maps

This commit is contained in:
schmelczerandras 2020-08-19 08:09:12 +02:00
parent 05682dd2d5
commit b7afa274f2
3 changed files with 5 additions and 1 deletions

1
frontend/.eslintignore Normal file
View file

@ -0,0 +1 @@
**/*.js

View file

@ -38,6 +38,7 @@
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-unused-imports": "^0.1.3",
"gl-matrix": "^3.3.0",
"html-webpack-inline-source-plugin": "0.0.10",
"html-webpack-plugin": "^3.2.0",

View file

@ -7,13 +7,14 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
const Sass = require('sass');
const isProduction = process.env.NODE_ENV === 'production';
const isProduction = process.env.NODE_ENV == 'production';
const isDevelopment = !isProduction;
module.exports = {
watchOptions: {
ignored: /node_modules/,
},
devtool: 'inline-source-map',
devServer: {
host: '0.0.0.0',
disableHostCheck: true,
@ -24,6 +25,7 @@ module.exports = {
new TerserJSPlugin({
sourceMap: isDevelopment,
cache: true,
test: /\.ts$/i,
terserOptions: {
ecma: 5,
warnings: true,