mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-16 06:36:48 +03:00
48 lines
1.1 KiB
JavaScript
48 lines
1.1 KiB
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',
|
|
'./index'
|
|
],
|
|
output: {
|
|
path: path.join(__dirname, 'dist'),
|
|
filename: 'bundle.js',
|
|
publicPath: '/static/'
|
|
},
|
|
plugins: [
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
new webpack.NoErrorsPlugin()
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'redux-devtools/lib': path.join(__dirname, '..', '..', 'src'),
|
|
'redux-devtools': path.join(__dirname, '..', '..', 'src'),
|
|
'react': path.join(__dirname, 'node_modules', 'react')
|
|
},
|
|
extensions: ['', '.js']
|
|
},
|
|
resolveLoader: {
|
|
'fallback': path.join(__dirname, 'node_modules')
|
|
},
|
|
module: {
|
|
loaders: [{
|
|
test: /\.js$/,
|
|
loaders: ['react-hot', 'babel'],
|
|
exclude: /node_modules/,
|
|
include: __dirname
|
|
}, {
|
|
test: /\.js$/,
|
|
loaders: ['react-hot', 'babel'],
|
|
include: path.join(__dirname, '..', '..', 'src')
|
|
}, {
|
|
test: /\.css?$/,
|
|
loaders: ['style', 'raw'],
|
|
include: __dirname
|
|
}]
|
|
}
|
|
};
|