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 5454 "autoprefixer" : " ^7.0.1" ,
5555 "babel" : " ^6.5.2" ,
5656 "babel-core" : " ^6.24.0" ,
57+ "babel-engine-plugin" : " ^0.2.1" ,
5758 "babel-eslint" : " ^8.2.1" ,
5859 "babel-jest" : " ^22.2.0" ,
5960 "babel-loader" : " ^7.0.0" ,
6061 "babel-plugin-transform-decorators-legacy" : " ^1.3.4" ,
6162 "babel-plugin-transform-object-assign" : " ^6.22.0" ,
6263 "babel-plugin-transform-react-jsx" : " ^6.8.0" ,
64+ "babel-preset-env" : " ^1.7.0" ,
6365 "babel-preset-es2015" : " ^6.24.0" ,
6466 "babel-preset-stage-0" : " ^6.5.0" ,
6567 "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';
33import 'core-js/fn/array/map' ;
44import 'core-js/fn/array/for-each' ;
55import 'core-js/fn/array/filter' ;
6+ import 'core-js/fn/array/from' ;
7+
68import { init } from './lib/init' ;
79import { CMP_GLOBAL_NAME } from "./lib/cmp" ;
810
Original file line number Diff line number Diff line change 22
33.container {
44 display : flex ;
5+ flex : 1 ;
56 flex-direction : column ;
67
78 .disclaimer {
Original file line number Diff line number Diff line change 33}
44
55div .intro {
6- display : flex ;
76 align-items : center ;
87 padding : 0 4em ;
9- flex : 1 ;
108 max-height : 100% ;
119
1210 .top {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import 'core-js/fn/array/for-each';
55import 'core-js/fn/array/filter' ;
66import 'core-js/fn/array/from' ;
77
8- import { init } from './lib/init' ;
8+ import { init } from './lib/init' ;
99import { CMP_GLOBAL_NAME } from './lib/cmp' ;
1010
1111function start ( ) {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import HtmlWebpackPlugin from 'html-webpack-plugin';
33import CopyWebpackPlugin from 'copy-webpack-plugin' ;
44import autoprefixer from 'autoprefixer' ;
55import path from 'path' ;
6+ const BabelEnginePlugin = require ( 'babel-engine-plugin' ) ;
67
78const ENV = process . env . NODE_ENV || 'development' ;
89
@@ -195,7 +196,10 @@ module.exports = [
195196 // Static assets copy
196197 new CopyWebpackPlugin ( [
197198 { from : './geoip.json' }
198- ] )
199+ ] ) ,
200+ new BabelEnginePlugin ( {
201+ presets : [ 'env' ]
202+ } )
199203 ] ) . concat ( ENV === 'production' ? uglifyPlugin : [ ] ) ,
200204 } ,
201205 // Docs config
You can’t perform that action at this time.
0 commit comments