File tree Expand file tree Collapse file tree 7 files changed +180
-21
lines changed Expand file tree Collapse file tree 7 files changed +180
-21
lines changed Original file line number Diff line number Diff line change 54
54
"autoprefixer" : " ^7.0.1" ,
55
55
"babel" : " ^6.5.2" ,
56
56
"babel-core" : " ^6.24.0" ,
57
+ "babel-engine-plugin" : " ^0.2.1" ,
57
58
"babel-eslint" : " ^8.2.1" ,
58
59
"babel-jest" : " ^22.2.0" ,
59
60
"babel-loader" : " ^7.0.0" ,
60
61
"babel-plugin-transform-decorators-legacy" : " ^1.3.4" ,
61
62
"babel-plugin-transform-object-assign" : " ^6.22.0" ,
62
63
"babel-plugin-transform-react-jsx" : " ^6.8.0" ,
64
+ "babel-preset-env" : " ^1.7.0" ,
63
65
"babel-preset-es2015" : " ^6.24.0" ,
64
66
"babel-preset-stage-0" : " ^6.5.0" ,
65
67
"babel-register" : " ^6.24.0" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import 'core-js/fn/array/fill';
3
3
import 'core-js/fn/array/map' ;
4
4
import 'core-js/fn/array/for-each' ;
5
5
import 'core-js/fn/array/filter' ;
6
+ import 'core-js/fn/array/from' ;
7
+
6
8
import { init } from './lib/init' ;
7
9
import { CMP_GLOBAL_NAME } from "./lib/cmp" ;
8
10
Original file line number Diff line number Diff line change 2
2
3
3
.container {
4
4
display : flex ;
5
+ flex : 1 ;
5
6
flex-direction : column ;
6
7
7
8
.disclaimer {
Original file line number Diff line number Diff line change 3
3
}
4
4
5
5
div .intro {
6
- display : flex ;
7
6
align-items : center ;
8
7
padding : 0 4em ;
9
- flex : 1 ;
10
8
max-height : 100% ;
11
9
12
10
.top {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import 'core-js/fn/array/for-each';
5
5
import 'core-js/fn/array/filter' ;
6
6
import 'core-js/fn/array/from' ;
7
7
8
- import { init } from './lib/init' ;
8
+ import { init } from './lib/init' ;
9
9
import { CMP_GLOBAL_NAME } from './lib/cmp' ;
10
10
11
11
function start ( ) {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import HtmlWebpackPlugin from 'html-webpack-plugin';
3
3
import CopyWebpackPlugin from 'copy-webpack-plugin' ;
4
4
import autoprefixer from 'autoprefixer' ;
5
5
import path from 'path' ;
6
+ const BabelEnginePlugin = require ( 'babel-engine-plugin' ) ;
6
7
7
8
const ENV = process . env . NODE_ENV || 'development' ;
8
9
@@ -195,7 +196,10 @@ module.exports = [
195
196
// Static assets copy
196
197
new CopyWebpackPlugin ( [
197
198
{ from : './geoip.json' }
198
- ] )
199
+ ] ) ,
200
+ new BabelEnginePlugin ( {
201
+ presets : [ 'env' ]
202
+ } )
199
203
] ) . concat ( ENV === 'production' ? uglifyPlugin : [ ] ) ,
200
204
} ,
201
205
// Docs config
You can’t perform that action at this time.
0 commit comments