mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-10 19:56:54 +03:00
chore(*): use eval-source-map (#547)
This commit is contained in:
parent
016a26c837
commit
b1fce36a54
|
@ -5,7 +5,7 @@ var isProduction = process.env.NODE_ENV === 'production';
|
|||
|
||||
module.exports = {
|
||||
mode: isProduction ? 'production' : 'development',
|
||||
devtool: 'source-map',
|
||||
devtool: 'eval-source-map',
|
||||
entry: [
|
||||
!isProduction && 'webpack-dev-server/client?http://localhost:3000',
|
||||
!isProduction && 'webpack/hot/only-dev-server',
|
||||
|
|
|
@ -81,5 +81,5 @@ module.exports = (env = {}) => ({
|
|||
devServer: {
|
||||
port: 3000
|
||||
},
|
||||
devtool: env.development ? 'eval' : 'source-map'
|
||||
devtool: env.development ? 'eval-source-map' : 'source-map'
|
||||
});
|
||||
|
|
|
@ -10,7 +10,7 @@ var isProduction = process.env.NODE_ENV === 'production';
|
|||
|
||||
module.exports = {
|
||||
mode: process.env.NODE_ENV || 'development',
|
||||
devtool: 'eval',
|
||||
devtool: 'eval-source-map',
|
||||
entry: isProduction
|
||||
? ['./demo/src/js/index']
|
||||
: [
|
||||
|
|
|
@ -3,14 +3,13 @@ const webpack = require('webpack');
|
|||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
||||
const ExportFilesWebpackPlugin = require('export-files-webpack-plugin');
|
||||
const NyanProgressWebpackPlugin = require('nyan-progress-webpack-plugin');
|
||||
|
||||
const pkg = require('./package.json');
|
||||
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
|
||||
module.exports = {
|
||||
devtool: 'eval',
|
||||
devtool: 'eval-source-map',
|
||||
entry: isProduction
|
||||
? ['./demo/src/js/index']
|
||||
: [
|
||||
|
@ -34,8 +33,7 @@ module.exports = {
|
|||
'process.env': {
|
||||
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
||||
}
|
||||
}),
|
||||
new NyanProgressWebpackPlugin()
|
||||
})
|
||||
].concat(
|
||||
isProduction
|
||||
? [
|
||||
|
|
|
@ -2,7 +2,7 @@ const path = require('path');
|
|||
const webpack = require('webpack');
|
||||
|
||||
module.exports = {
|
||||
devtool: 'eval-cheap-module-source-map',
|
||||
devtool: 'eval-source-map',
|
||||
devServer: {
|
||||
contentBase: path.join(__dirname, 'dist'),
|
||||
host: 'localhost',
|
||||
|
|
Loading…
Reference in New Issue
Block a user