mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-01-31 19:54:35 +03:00
1a4e509b4b
* Fix * Test * Changes * Run prettier * Remove single quote
32 lines
690 B
JavaScript
32 lines
690 B
JavaScript
var path = require('path');
|
|
var webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
|
|
devtool: 'eval-source-map',
|
|
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()],
|
|
resolve: {
|
|
extensions: ['.js']
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
loaders: ['babel-loader'],
|
|
exclude: /node_modules/,
|
|
include: __dirname
|
|
}
|
|
]
|
|
}
|
|
};
|