File tree Expand file tree Collapse file tree 4 files changed +14
-46685
lines changed Expand file tree Collapse file tree 4 files changed +14
-46685
lines changed Original file line number Diff line number Diff line change 18
18
"type" : " git" ,
19
19
"url" : " git+https://github.com/ashvin27/react-datatable.git"
20
20
},
21
- "publishConfig" : {
22
- "registry" : " https://npm.pkg.github.com/"
23
- },
24
21
"scripts" : {
25
22
"test" : " echo \" Error: no test specified\" && exit 1" ,
26
23
"start" : " webpack --watch" ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
+ import includes from 'lodash/includes' ;
2
3
import style from '../style' ;
3
4
4
5
export default function TableHeader ( props ) {
@@ -17,7 +18,7 @@ export default function TableHeader(props){
17
18
{ ( props . lengthMenuText [ 0 ] ) ? props . lengthMenuText [ 0 ] : '' }
18
19
</ span >
19
20
</ div >
20
- { ( _ . includes ( props . config . language . length_menu , '_MENU_' ) ) ? (
21
+ { ( includes ( props . config . language . length_menu , '_MENU_' ) ) ? (
21
22
< select type = "text" className = "form-control" style = { style . table_size_dropdown }
22
23
onChange = { props . changePageSize } >
23
24
{ props . config . length_menu . map ( ( value , key ) => {
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ module.exports = {
10
10
} ,
11
11
watch : true ,
12
12
plugins : [
13
- // new webpack.DefinePlugin({
14
- // 'process.env.NODE_ENV': JSON.stringify('development') // production development
15
- // }),
16
- // new webpack.optimize.UglifyJsPlugin(),
17
- // new webpack.HotModuleReplacementPlugin()
13
+ new webpack . DefinePlugin ( {
14
+ 'process.env.NODE_ENV' : JSON . stringify ( 'development' ) // production development
15
+ } ) ,
16
+ new webpack . optimize . UglifyJsPlugin ( ) ,
17
+ new webpack . HotModuleReplacementPlugin ( )
18
18
] ,
19
19
module : {
20
20
rules : [
You can’t perform that action at this time.
0 commit comments