Switch back to `"eval"` sourcemaps?
parent
76f066006b
commit
10db281be2
|
@ -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: [
|
||||
{
|
||||
|
|
|
@ -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/',
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue