forked from p34709852/monkey
44 lines
1.3 KiB
JavaScript
44 lines
1.3 KiB
JavaScript
'use strict';
|
|
let path = require('path');
|
|
let defaultSettings = require('./defaults');
|
|
|
|
// Additional npm or bower modules to include in builds
|
|
// Add all foreign plugins you may need into this array
|
|
// @example:
|
|
// let npmBase = path.join(__dirname, '../node_modules');
|
|
// let additionalPaths = [ path.join(npmBase, 'react-bootstrap') ];
|
|
let additionalPaths = [];
|
|
|
|
module.exports = {
|
|
additionalPaths: additionalPaths,
|
|
port: defaultSettings.port,
|
|
debug: true,
|
|
devtool: 'eval',
|
|
output: {
|
|
path: path.join(__dirname, '/../dist/assets'),
|
|
filename: 'app.js',
|
|
publicPath: defaultSettings.publicPath
|
|
},
|
|
devServer: {
|
|
contentBase: './src/',
|
|
historyApiFallback: true,
|
|
hot: true,
|
|
port: defaultSettings.port,
|
|
publicPath: defaultSettings.publicPath,
|
|
noInfo: false
|
|
},
|
|
resolve: {
|
|
extensions: ['', '.js', '.jsx'],
|
|
alias: {
|
|
actions: `${defaultSettings.srcPath}/actions/`,
|
|
components: `${defaultSettings.srcPath}/components/`,
|
|
sources: `${defaultSettings.srcPath}/sources/`,
|
|
stores: `${defaultSettings.srcPath}/stores/`,
|
|
styles: `${defaultSettings.srcPath}/styles/`,
|
|
config: `${defaultSettings.srcPath}/config/` + process.env.REACT_WEBPACK_ENV,
|
|
'react/lib/ReactMount': 'react-dom/lib/ReactMount'
|
|
}
|
|
},
|
|
module: {}
|
|
};
|