1
0
mirror of https://github.com/yldio/copilot.git synced 2025-01-10 02:50:11 +02:00
copilot/legacy/spikes/stacks/redux-loop/src/config/webpack.config.js
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00

42 lines
937 B
JavaScript

const webpack = require('webpack');
const path = require('path');
module.exports = {
debug: true,
devtool: 'eval',
context: path.join(__dirname, '../client'),
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'react-hot-loader/patch',
'./index.js'
],
output: {
path: path.join(__dirname, '../../static'),
publicPath: '/static/',
filename: 'bundle.js'
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
],
module: {
loaders: [{
test: /js?$/,
exclude: /node_modules/,
include: [
path.join(__dirname, '../client')
],
loaders: ['babel']
}, {
test: /\.json?$/,
exclude: /node_modules/,
include: [
path.join(__dirname, '../client'),
path.join(__dirname, '../../') // for package.json
],
loaders: ['json']
}]
}
};