mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 02:53:53 +03:00
29 lines
619 B
JavaScript
29 lines
619 B
JavaScript
|
var path = require('path');
|
||
|
var webpack = require('webpack');
|
||
|
|
||
|
module.exports = {
|
||
|
mode: 'development',
|
||
|
devtool: 'source-map',
|
||
|
entry: ['webpack-hot-middleware/client', './index'],
|
||
|
output: {
|
||
|
path: path.join(__dirname, 'dist'),
|
||
|
filename: 'bundle.js',
|
||
|
publicPath: '/static/',
|
||
|
},
|
||
|
plugins: [new webpack.HotModuleReplacementPlugin()],
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
loaders: ['babel-loader'],
|
||
|
exclude: /node_modules/,
|
||
|
},
|
||
|
{
|
||
|
test: /\.css?$/,
|
||
|
loaders: ['style-loader', 'raw-loader'],
|
||
|
include: __dirname,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
};
|