File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,9 @@ const eslintrc = {
11
11
}
12
12
} ,
13
13
"globals" : {
14
- "__DEV__" : false ,
15
- "__TEST__" : false ,
16
- "__PROD__" : false ,
17
- "__COVERAGE__" : false ,
14
+ "isDev" : false ,
15
+ "isTest" : false ,
16
+ "isProd" : false ,
18
17
"window" : false
19
18
} ,
20
19
"parser" : "babel-eslint" ,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ lib-cov
10
10
pids
11
11
logs
12
12
results
13
+ dist
13
14
14
15
npm-debug.log
15
16
node_modules
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const startCompile = () => {
10
10
return Promise . resolve ( )
11
11
. then ( ( ) => compiler ( webpackConfig ) )
12
12
. then ( ( stats ) => {
13
- if ( stats . hasWarnings ( ) && env . __PROD__ ) { // eslint-disable-line
13
+ if ( stats . hasWarnings ( ) && env . isProd ) { // eslint-disable-line
14
14
throw new Error ( 'Production not allow warnig, exit .' ) ;
15
15
}
16
16
debug ( 'Copying static assets to dist folder.' ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module.exports = paths => ({
2
2
UTILS : paths . src ( 'utils' ) ,
3
3
COMPONENTS : paths . src ( 'components' ) ,
4
4
CONTAINERS : paths . src ( 'containers' ) ,
5
- STYLES : paths . src ( 'static/ styles' ) ,
5
+ STYLES : paths . src ( 'styles' ) ,
6
6
REDUCERS : paths . src ( 'reducers' ) ,
7
7
LAYOUTS : paths . src ( 'layouts' )
8
8
} ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ let render = () => {
16
16
MOUNT_NODE
17
17
) ;
18
18
} ;
19
- if ( __DEV__ && module . hot ) {
19
+ if ( isDev && module . hot ) {
20
20
const renderApp = render ;
21
21
const renderError = ( error ) => {
22
22
const RedBox = require ( 'redbox-react' ) . default ; // eslint-disable-line
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export default (initialState = {}) => {
10
10
const enhancers = [ ] ;
11
11
const globalReducerMaps = [ ] ;
12
12
13
- if ( __DEV__ ) {
13
+ if ( isDev ) {
14
14
const devToolsExtension = window . devToolsExtension ;
15
15
if ( typeof devToolsExtension === 'function' ) {
16
16
enhancers . push ( devToolsExtension ( ) ) ;
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments