Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #53 from qlik-oss/QLIK-98564/sourceMaps
Browse files Browse the repository at this point in the history
Removing source maps from production mode.
  • Loading branch information
PurwaShrivastava authored Feb 12, 2020
2 parents e1528ce + 1059a0d commit f38a445
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ const path = require('path');

const DIST = path.resolve("./dist");
const MODE = process.env.NODE_ENV || 'development';
const SOURCE_MAP = 'sourec-map';
const DEVTOOL = (process.env.NODE_ENV === 'development') ? SOURCE_MAP : false;

console.log('Webpack mode:', MODE); // eslint-disable-line no-console

const config = {
devtool: 'source-map',
devtool: DEVTOOL,
entry: [
'./src/qlik-heatmap-chart.js'
],
Expand Down

0 comments on commit f38a445

Please sign in to comment.