Switch back to `"eval"` sourcemaps?

pull/885/head
Rick Carlino 2018-06-13 09:57:24 -05:00
parent 76f066006b
commit 10db281be2
3 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,7 @@ var StatsPlugin = require('stats-webpack-plugin');
module.exports = function () {
return {
mode: "production",
entry: {
"app_bundle": "./webpack/entry.tsx",
"front_page": "./webpack/front_page/index.tsx",
@ -9,7 +10,7 @@ module.exports = function () {
"tos_update": "./webpack/tos_update/index.tsx"
},
// Was "eval", but that did not go well with our CSP
devtool: "cheap-module-source-map",
devtool: "eval",
module: {
rules: [
{

View File

@ -9,7 +9,7 @@ var webpack = require("webpack");
var conf = genConfig();
conf.mode = "production";
conf.devtool = "eval"
conf.output = {
path: path.join(__dirname, '..', 'public', 'webpack'),
publicPath: '/webpack/',

View File

@ -27,6 +27,8 @@ import { FirmwareConfig } from "./config_storage/firmware_configs";
import { getWebAppConfigValue } from "./config_storage/actions";
import { takeSortedLogs } from "./logs/state_to_props";
setTimeout(() => console.log("Hello?"), 5000)
/** Remove 300ms delay on touch devices - https://github.com/ftlabs/fastclick */
const fastClick = require("fastclick");
fastClick.attach(document.body);