File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 141141 "rollup-plugin-babili" : " ^3.0.0" ,
142142 "rollup-plugin-commonjs" : " ^8.0.2" ,
143143 "rollup-plugin-node-resolve" : " ^3.0.0" ,
144+ "rollup-plugin-replace" : " ^1.1.1" ,
144145 "static-site-generator-webpack-plugin" : " ^2.0.1" ,
145146 "style-loader" : " ^0.13.1" ,
146147 "webpack" : " ^1.12.13" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import nodeResolve from 'rollup-plugin-node-resolve';
22import commonjs from 'rollup-plugin-commonjs' ;
33import babel from 'rollup-plugin-babel' ;
44import babili from 'rollup-plugin-babili' ;
5+ import replace from 'rollup-plugin-replace' ;
56
67const config = {
78 moduleName : 'Reactstrap' ,
@@ -32,6 +33,9 @@ const config = {
3233
3334if ( process . env . NODE_ENV === 'production' ) {
3435 config . plugins . push ( babili ( { comments : false } ) ) ;
36+ config . plugins . push ( replace ( {
37+ 'process.env.NODE_ENV' : JSON . stringify ( 'production' ) ,
38+ } ) ) ;
3539}
3640
3741export default config ;
You can’t perform that action at this time.
0 commit comments