mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-01-31 11:51:41 +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 = {
|
module.exports = {
|
||||||
mode: isProduction ? 'production' : 'development',
|
mode: isProduction ? 'production' : 'development',
|
||||||
devtool: 'source-map',
|
devtool: 'eval-source-map',
|
||||||
entry: [
|
entry: [
|
||||||
!isProduction && 'webpack-dev-server/client?http://localhost:3000',
|
!isProduction && 'webpack-dev-server/client?http://localhost:3000',
|
||||||
!isProduction && 'webpack/hot/only-dev-server',
|
!isProduction && 'webpack/hot/only-dev-server',
|
||||||
|
|
|
@ -81,5 +81,5 @@ module.exports = (env = {}) => ({
|
||||||
devServer: {
|
devServer: {
|
||||||
port: 3000
|
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 = {
|
module.exports = {
|
||||||
mode: process.env.NODE_ENV || 'development',
|
mode: process.env.NODE_ENV || 'development',
|
||||||
devtool: 'eval',
|
devtool: 'eval-source-map',
|
||||||
entry: isProduction
|
entry: isProduction
|
||||||
? ['./demo/src/js/index']
|
? ['./demo/src/js/index']
|
||||||
: [
|
: [
|
||||||
|
|
|
@ -3,14 +3,13 @@ const webpack = require('webpack');
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
||||||
const ExportFilesWebpackPlugin = require('export-files-webpack-plugin');
|
const ExportFilesWebpackPlugin = require('export-files-webpack-plugin');
|
||||||
const NyanProgressWebpackPlugin = require('nyan-progress-webpack-plugin');
|
|
||||||
|
|
||||||
const pkg = require('./package.json');
|
const pkg = require('./package.json');
|
||||||
|
|
||||||
const isProduction = process.env.NODE_ENV === 'production';
|
const isProduction = process.env.NODE_ENV === 'production';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
devtool: 'eval',
|
devtool: 'eval-source-map',
|
||||||
entry: isProduction
|
entry: isProduction
|
||||||
? ['./demo/src/js/index']
|
? ['./demo/src/js/index']
|
||||||
: [
|
: [
|
||||||
|
@ -34,8 +33,7 @@ module.exports = {
|
||||||
'process.env': {
|
'process.env': {
|
||||||
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
|
||||||
}
|
}
|
||||||
}),
|
})
|
||||||
new NyanProgressWebpackPlugin()
|
|
||||||
].concat(
|
].concat(
|
||||||
isProduction
|
isProduction
|
||||||
? [
|
? [
|
||||||
|
|
|
@ -2,7 +2,7 @@ const path = require('path');
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
devtool: 'eval-cheap-module-source-map',
|
devtool: 'eval-source-map',
|
||||||
devServer: {
|
devServer: {
|
||||||
contentBase: path.join(__dirname, 'dist'),
|
contentBase: path.join(__dirname, 'dist'),
|
||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user