mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-23 01:56:52 +03:00
1a4e509b4b
* Fix * Test * Changes * Run prettier * Remove single quote
30 lines
718 B
JavaScript
Executable File
30 lines
718 B
JavaScript
Executable File
var path = require('path');
|
|
var webpack = require('webpack');
|
|
|
|
var isProduction = process.env.NODE_ENV === 'production';
|
|
|
|
module.exports = {
|
|
mode: isProduction ? 'production' : 'development',
|
|
devtool: 'eval-source-map',
|
|
entry: [
|
|
!isProduction && 'webpack-dev-server/client?http://localhost:3000',
|
|
!isProduction && 'webpack/hot/only-dev-server',
|
|
'./src/index'
|
|
].filter(Boolean),
|
|
output: {
|
|
path: path.join(__dirname, 'dist'),
|
|
filename: 'bundle.js',
|
|
publicPath: '/static/'
|
|
},
|
|
plugins: [new webpack.HotModuleReplacementPlugin()],
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
loader: 'babel-loader',
|
|
include: path.join(__dirname, 'src')
|
|
}
|
|
]
|
|
}
|
|
};
|