1
1
const path = require ( 'path' ) ;
2
2
3
- const sourcePath = path . join ( __dirname , '../../react-bootstrap-table2/src ' ) ;
4
- const paginationSourcePath = path . join ( __dirname , '../../react-bootstrap-table2-paginator/src ' ) ;
5
- const overlaySourcePath = path . join ( __dirname , '../../react-bootstrap-table2-overlay/src ' ) ;
6
- const filterSourcePath = path . join ( __dirname , '../../react-bootstrap-table2-filter/src ' ) ;
7
- const editorSourcePath = path . join ( __dirname , '../../react-bootstrap-table2-editor/src ' ) ;
3
+ const sourcePath = path . join ( __dirname , '../../react-bootstrap-table2' ) ;
4
+ const paginationSourcePath = path . join ( __dirname , '../../react-bootstrap-table2-paginator' ) ;
5
+ const overlaySourcePath = path . join ( __dirname , '../../react-bootstrap-table2-overlay' ) ;
6
+ const filterSourcePath = path . join ( __dirname , '../../react-bootstrap-table2-filter' ) ;
7
+ const editorSourcePath = path . join ( __dirname , '../../react-bootstrap-table2-editor' ) ;
8
8
const sourceStylePath = path . join ( __dirname , '../../react-bootstrap-table2/style' ) ;
9
9
const paginationStylePath = path . join ( __dirname , '../../react-bootstrap-table2-paginator/style' ) ;
10
10
const storyPath = path . join ( __dirname , '../stories' ) ;
@@ -16,6 +16,12 @@ const aliasPath = {
16
16
src : srcPath ,
17
17
components : path . join ( srcPath , 'components' ) ,
18
18
utils : path . join ( srcPath , 'utils' ) ,
19
+
20
+ 'react-bootstrap-table2' : sourcePath ,
21
+ 'react-bootstrap-table2-editor' : editorSourcePath ,
22
+ 'react-bootstrap-table2-filter' : filterSourcePath ,
23
+ 'react-bootstrap-table2-overlay' : overlaySourcePath ,
24
+ 'react-bootstrap-table2-paginator' : paginationSourcePath ,
19
25
} ;
20
26
21
27
const loaders = [ {
@@ -28,7 +34,7 @@ const loaders = [{
28
34
test : / \. j s ? $ / ,
29
35
use : [ 'babel-loader' ] ,
30
36
exclude : / n o d e _ m o d u l e s / ,
31
- include : [ sourcePath , paginationSourcePath , overlaySourcePath , filterSourcePath , editorSourcePath , storyPath ] ,
37
+ include : [ sourcePath , paginationSourcePath , overlaySourcePath , filterSourcePath , editorSourcePath , storyPath ]
32
38
} , {
33
39
test : / \. c s s $ / ,
34
40
use : [ 'style-loader' , 'css-loader' ] ,
0 commit comments