File tree 3 files changed +15
-8
lines changed
3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 30
30
"vue" : " ^2.3.0"
31
31
},
32
32
"dependencies" : {
33
- "lodash" : " ^4.17.4" ,
34
- "striptags" : " ^3.0.1"
33
+ "lodash" : " ^4.17.4"
35
34
},
36
35
"devDependencies" : {
37
36
"babel-core" : " ^6.24.1" ,
Original file line number Diff line number Diff line change 1
1
import moment from 'moment' ;
2
- import striptags from 'striptags' ;
3
2
import get from 'lodash/get' ;
4
3
5
4
export default class Row {
@@ -23,9 +22,7 @@ export default class Row {
23
22
return '' ;
24
23
}
25
24
26
- return striptags (
27
- value . toString ( ) . toLowerCase ( )
28
- ) ;
25
+ return value . toString ( ) . toLowerCase ( ) ;
29
26
}
30
27
31
28
getSortableValue ( columnName ) {
Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' ) ;
2
+ const webpack = require ( 'webpack' ) ;
2
3
const merge = require ( 'webpack-merge' ) ;
3
4
4
5
module . exports = merge ( require ( './webpack.base' ) , {
5
6
context : __dirname ,
6
7
7
- entry : './src/index.js' ,
8
+ entry : {
9
+ 'index' : './src/index.js' ,
10
+ 'index.min' : './src/index.js' ,
11
+ } ,
8
12
9
13
output : {
10
14
path : path . resolve ( __dirname , 'dist' ) ,
11
- filename : 'index .js' ,
15
+ filename : '[name] .js' ,
12
16
library : 'vue-table-component' ,
13
17
libraryTarget : 'umd' ,
14
18
} ,
15
19
16
20
externals : [
17
21
'moment' , 'vue' ,
18
22
] ,
23
+
24
+ plugins : [
25
+ new webpack . optimize . UglifyJsPlugin ( {
26
+ include : / \. m i n \. j s $ / ,
27
+ minimize : true ,
28
+ } ) ,
29
+ ] ,
19
30
} ) ;
You can’t perform that action at this time.
0 commit comments