remove config boilerplate

This commit is contained in:
crptm 2017-05-25 02:43:41 +04:00
parent fa964a56d4
commit 4345497a6d
7 changed files with 1 additions and 33 deletions

View File

@ -1,2 +0,0 @@
// Settings configured here will be merged into the final config object.
export default {}

View File

@ -1,9 +0,0 @@
'use strict';
import baseConfig from './base';
let config = {
BASE_API: 'http://localhost:3333/api/v1'
};
export default Object.freeze(Object.assign({}, baseConfig, config));

View File

@ -1,9 +0,0 @@
'use strict';
import baseConfig from './base';
let config = {
BASE_API: 'http://localhost:3333/api/v1' /// your base api for XHR
};
export default Object.freeze(Object.assign({}, baseConfig, config));

View File

@ -1,9 +0,0 @@
'use strict';
import baseConfig from './base';
let config = {
appEnv: 'test' // don't remove the appEnv property here
};
export default Object.freeze(Object.assign(baseConfig, config));

View File

@ -31,8 +31,7 @@ module.exports = {
components: `${config.srcPath}/components/`,
containers: `${config.srcPath}/containers/`,
styles: `${config.srcPath}/styles/`,
less_vars: `${config.srcPath}/styles/etherwallet-variables.less`,
config: `${config.srcPath}/config/` + process.env.REACT_WEBPACK_ENV
less_vars: `${config.srcPath}/styles/etherwallet-variables.less`
},
modules: [
// places where to search for required modules

View File

@ -1,6 +1,5 @@
'use strict'
process.env.NODE_ENV = 'development'
process.env.REACT_WEBPACK_ENV = 'dev'
const webpack = require('webpack')
const base = require('./webpack.base')

View File

@ -1,6 +1,5 @@
'use strict'
process.env.NODE_ENV = 'production'
process.env.REACT_WEBPACK_ENV = 'dist'
const exec = require('child_process').execSync
const webpack = require('webpack')