Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'process.env.DISABLE_MIXPANEL': JSON.stringify(process.env.DISABLE_MIXPANEL || '""'),
'process.env.DISABLE_SENTRY': JSON.stringify(process.env.DISABLE_SENTRY || '""'),
}),
new ExtractTextPlugin({
filename: 'name.css',
}),
new webpack.optimize.OccurrenceOrderPlugin(),
// new BundleAnalyzerPlugin(),
];
if (process.env.UPLOAD_SENTRY !== '0' && process.env.DISABLE_SENTRY !== '1') {
plugins.push(
new SentryPlugin({
organisation: 'webpal',
project: 'chronos-desktop',
apiKey: process.env.SENTRY_API_KEY,
release: `${pjson.version}_${process.platform}`,
}),
);
}
export default merge.smart(baseConfig, {
devtool: 'cheap-source-map',
target: 'electron-renderer',
entry: {
main: ['babel-polyfill', './app/index'],
screenPopup: ['babel-polyfill', './app/screenPopup'],
* Babli is an ES6+ aware minifier based on the Babel toolchain (beta)
*/
new BabiliPlugin(),
new ExtractTextPlugin('style.css'),
new BundleAnalyzerPlugin({
analyzerMode: process.env.OPEN_ANALYZER === 'true' ? 'server' : 'disabled',
openAnalyzer: process.env.OPEN_ANALYZER === 'true',
}),
];
if (process.env.UPLOAD_SENTRY !== '0') {
plugins.push(
new SentryPlugin({
organisation: 'webpal',
project: 'DBGlass',
apiKey: '9eacb1a468a41b29bd005a1a46c039644fe1ca5ea614540b9e6b03db719a5ee',
release: `${pjson.version}_${process.platform}`,
}),
);
}
export default merge.smart(baseConfig, {
devtool: 'source-map',
target: 'electron-renderer',
entry: ['babel-polyfill', './app/index'],