UNPKG

react-esc-config

Version:
85 lines (84 loc) 1.89 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; // ======================================================== // Default Configuration // ======================================================== var env = process.env.NODE_ENV || 'development'; var _default = { env: env, // ---------------------------------- // App mount point config // ---------------------------------- app: { mountPoint: { id: 'root', style: { height: '100%' } } }, // ---------------------------------- // Store Configuration // ---------------------------------- store: { reducersLoc: 'store/reducers', // Location in the project witch returns all reducers enhancers: [], middleware: { byFolder: false, collection: [] } }, // ---------------------------------- // Webpack Configuration // ---------------------------------- webpack: { mode: 'production', devTool: 'source-map', loaders: [], plugins: [], quiet: true, hashType: 'hash', stats: { chunks: false, chunkModules: false, colors: true }, publicPath: '/', globals: { 'process.env': { NODE_ENV: JSON.stringify(env) }, NODE_ENV: env, __DEV__: env === 'development', __PROD__: env === 'production', __TEST__: env === 'test' }, clientEntries: { vendor: ['react', 'redux', 'react-redux'] }, htmlPlugin: { appMountId: 'root', minify: { removeComments: true, collapseWhitespace: true } } }, render: null, utils: { // This one can be generated using the buildPaths util paths: {}, dirs: { src: 'src', dist: 'dist', public: 'dist/public', server: null, client: null } } }; exports.default = _default;