'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _path = require('path'); var _path2 = _interopRequireDefault(_path); var _webpack = require('webpack'); var _webpack2 = _interopRequireDefault(_webpack); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var config = { devtool: '#cheap-module-eval-source-map', entry: { admin: ['stack-source-map/register', _path2.default.resolve(__dirname, '../client/init_admin')], preview: ['stack-source-map/register', 'webpack-hot-middleware/client', _path2.default.resolve(__dirname, '../client/init_preview')] }, output: { path: _path2.default.join(__dirname, 'dist'), filename: '[name].bundle.js', publicPath: '/static/' }, plugins: [new _webpack2.default.optimize.OccurenceOrderPlugin(), new _webpack2.default.HotModuleReplacementPlugin()], module: { loaders: [{ test: /\.jsx?$/, loader: 'babel', query: { presets: ['react', 'es2015', 'stage-2'] }, exclude: [_path2.default.resolve('./node_modules'), _path2.default.resolve(__dirname, 'node_modules')], include: [_path2.default.resolve('./'), __dirname] }] } }; exports.default = config;