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