MyCrypto/webpack_config/config.js

39 lines
820 B
JavaScript
Raw Normal View History

2017-07-03 20:28:56 -07:00
'use strict';
const path = require('path');
module.exports = {
port: process.env.HTTPS ? 3443 : 3000,
2017-04-24 16:36:59 -07:00
title: 'MEW',
2017-07-03 20:28:56 -07:00
publicPath: process.env.BUILD_GH_PAGES ? '/react-semantic.ui-starter/' : '/',
srcPath: path.join(__dirname, './../common'),
// add these dependencies to a standalone vendor bundle
vendor: [
2017-07-03 20:28:56 -07:00
'react',
'react-dom',
'react-router',
'redux',
'react-router-redux',
2017-07-25 16:13:25 -07:00
'redux-saga',
2017-07-03 20:28:56 -07:00
'whatwg-fetch'
],
// Settings for webpack-image-loader image compression
imageCompressionOptions: {
optipng: {
optimizationLevel: 4
},
gifsicle: {
interlaced: false
},
mozjpeg: {
quality: 80
},
svgo: {
plugins: [
{ removeViewBox: true },
{ removeEmptyAttrs: false },
{ sortAttrs: true }
]
}
}
2017-07-03 20:28:56 -07:00
};