@@ -8,6 +8,7 @@ const mobilenetWebpackConfig = require('../packages/paddlejs-models/mobilenet/we
8
8
const gestureWebpackConfig = require ( '../packages/paddlejs-models/gesture/webpack.prod' ) ;
9
9
const humansegWebpackConfig = require ( '../packages/paddlejs-models/humanseg/webpack.prod' ) ;
10
10
const ocrWebpackConfig = require ( '../packages/paddlejs-models/ocr/webpack.prod' ) ;
11
+ const detectWebpackConfig = require ( '../packages/paddlejs-models/detect/webpack.prod' ) ;
11
12
12
13
const DIST_DIR = path . join ( __dirname , 'dist' ) ;
13
14
@@ -33,9 +34,10 @@ const mobilenet = new ConfigInfo('mobilenet', mobilenetWebpackConfig, true);
33
34
const gesture = new ConfigInfo ( 'gesture' , gestureWebpackConfig , true ) ;
34
35
const humanseg = new ConfigInfo ( 'humanseg' , humansegWebpackConfig , true ) ;
35
36
const ocr = new ConfigInfo ( 'ocr' , ocrWebpackConfig , true ) ;
37
+ const detect = new ConfigInfo ( 'detect' , detectWebpackConfig , true ) ;
36
38
37
39
// edit webpack config
38
- [ core , webgl , mobilenet , gesture , humanseg , ocr ] . forEach ( instance => {
40
+ [ core , webgl , mobilenet , gesture , humanseg , ocr , detect ] . forEach ( instance => {
39
41
const config = instance . config ;
40
42
config . output . path = DIST_DIR ;
41
43
config . output . filename = `${ instance . key } _bundle.js` ;
@@ -64,6 +66,7 @@ const app = express()
64
66
. use ( middleware ( gesture . compiler ) )
65
67
. use ( middleware ( humanseg . compiler ) )
66
68
. use ( middleware ( ocr . compiler ) )
69
+ . use ( middleware ( detect . compiler ) )
67
70
. use ( express . static ( DIST_DIR ) ) ;
68
71
69
72
app . listen ( port , ( ) => {
0 commit comments