File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
packages/mars-build/src/scripts Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,11 @@ function getTaskSFC(config, options) {
45
45
46
46
if ( target === 'h5' ) {
47
47
compile = require ( '../gulp-mars-h5' ) ;
48
- // for dev use local packages
49
- if ( config . devConfig ) {
50
- let absoluteH5Path = path . resolve ( process . cwd ( ) , 'dist-h5/src/' ) ;
51
- let absoluteCompPath = path . resolve ( __filename , '../../../../mars-components/src/' ) ;
52
- let absoluteApiPath = path . resolve ( __filename , '../../../../mars-api/' ) ;
53
- let devCompPath = path . relative ( absoluteH5Path , absoluteCompPath ) ;
54
- let devApiPath = path . relative ( absoluteH5Path , absoluteApiPath ) ;
55
-
56
- compileOption . devApiPath = devApiPath ;
57
- compileOption . devCompPath = devCompPath ;
48
+ // for packages
49
+ if ( config . packages ) {
50
+ const { api, components} = config . packages ;
51
+ compileOption . devApiPath = api ;
52
+ compileOption . devCompPath = components ;
58
53
}
59
54
}
60
55
You can’t perform that action at this time.
0 commit comments