Skip to content

Commit

Permalink
temp disable prod sourcemaps webpack-contrib/babel-minify-webpack-plu…
Browse files Browse the repository at this point in the history
  • Loading branch information
kavsingh committed Oct 18, 2018
1 parent 3ef0ba1 commit 5ecb88b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const SWPrecachePlugin = require('sw-precache-webpack-plugin')
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
const VisualizerPlugin = require('webpack-visualizer-plugin')
const PWAManifest = require('webpack-pwa-manifest')

const { COLOR_PAGE } = require('./src/constants/style')

const fromRoot = path.resolve.bind(path, __dirname)
Expand All @@ -28,7 +29,9 @@ module.exports = {
path: fromRoot('dist'),
publicPath,
},
devtool: isProduction ? 'source-map' : 'cheap-eval-sourcemap',
// FIXME: Workaround until https://github.com/webpack-contrib/babel-minify-webpack-plugin/issues/68 is fixed
// devtool: isProduction ? 'source-map' : 'cheap-eval-sourcemap',
devtool: isProduction ? false : 'cheap-eval-sourcemap',
devServer: {
host: servePublic ? '0.0.0.0' : 'localhost',
port: 3000,
Expand Down

0 comments on commit 5ecb88b

Please sign in to comment.