mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-27 20:13:56 +03:00
41 lines
939 B
JavaScript
41 lines
939 B
JavaScript
var path = require('path');
|
|
var webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
devtool: 'eval',
|
|
entry: [
|
|
'webpack-dev-server/client?http://localhost:3000',
|
|
'webpack/hot/only-dev-server',
|
|
'./src/index'
|
|
],
|
|
output: {
|
|
path: path.join(__dirname, 'dist'),
|
|
filename: 'bundle.js',
|
|
publicPath: '/static/'
|
|
},
|
|
plugins: [
|
|
new webpack.HotModuleReplacementPlugin()
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'redux-devtools': path.join(__dirname, '..', '..', 'src'),
|
|
'react': path.join(__dirname, 'node_modules', 'react')
|
|
}
|
|
},
|
|
resolveLoader: {
|
|
'fallback': path.join(__dirname, 'node_modules')
|
|
},
|
|
module: {
|
|
loaders: [{
|
|
test: /\.js$/,
|
|
loaders: ['react-hot', 'babel'],
|
|
exclude: /node_modules/,
|
|
include: path.join(__dirname, 'src')
|
|
}, {
|
|
test: /\.js$/,
|
|
loaders: ['react-hot', 'babel'],
|
|
include: path.join(__dirname, '..', '..', 'src')
|
|
}]
|
|
}
|
|
};
|