File tree Expand file tree Collapse file tree 5 files changed +653
-627
lines changed
Expand file tree Collapse file tree 5 files changed +653
-627
lines changed Original file line number Diff line number Diff line change 3333 "@types/react-dom" : " ^16.8.5" ,
3434 "@types/react-router-dom" : " ^4.3.4" ,
3535 "@types/storybook__react" : " ^4.0.2" ,
36- "@types/victory" : " ^31 .0.14 " ,
36+ "@types/victory" : " ^33 .0.0 " ,
3737 "@types/webpack" : " ^4.32.1" ,
3838 "css-loader" : " ^3.2.0" ,
3939 "enzyme" : " ^3.7.0" ,
5656 "rimraf" : " ^3.0.0" ,
5757 "style-loader" : " ^1.0.0" ,
5858 "svg-url-loader" : " ^3.0.0" ,
59+ "terser-webpack-plugin" : " ^2.1.0" ,
5960 "ts-jest" : " ^24.0.0" ,
6061 "ts-loader" : " ^6.0.2" ,
6162 "tsconfig-paths-webpack-plugin" : " ^3.2.0" ,
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const AppLayout: React.FunctionComponent<IAppLayout> = ({children}) => {
4848 < Nav id = "nav-primary-simple" >
4949 < NavList id = "nav-list-simple" variant = { NavVariants . simple } >
5050 { routes . map ( ( route , idx ) => {
51- return (
51+ return route . label && (
5252 < NavItem key = { `${ route . label } -${ idx } ` } id = { `${ route . label } -${ idx } ` } >
5353 < NavLink exact = { true } to = { route . path } activeClassName = "pf-m-current" > { route . label } </ NavLink >
5454 </ NavItem >
Original file line number Diff line number Diff line change 2121 "paths" : {
2222 "@app/*" : [" src/app/*" ],
2323 "@assets/*" : [" node_modules/@patternfly/react-core/dist/styles/assets/*" ]
24- },
24+ }
2525 },
2626 "include" : [
2727 " **/*.ts" ,
Original file line number Diff line number Diff line change @@ -3,12 +3,14 @@ const merge = require('webpack-merge');
33const common = require ( './webpack.common.js' ) ;
44const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' ) ;
55const OptimizeCSSAssetsPlugin = require ( 'optimize-css-assets-webpack-plugin' ) ;
6+ const TerserJSPlugin = require ( 'terser-webpack-plugin' ) ;
67
78module . exports = merge ( common , {
89 mode : 'production' ,
910 devtool : 'source-map' ,
1011 optimization : {
1112 minimizer : [
13+ new TerserJSPlugin ( { } ) ,
1214 new OptimizeCSSAssetsPlugin ( { } )
1315 ] ,
1416 } ,
You can’t perform that action at this time.
0 commit comments