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