-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
501 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* Created by ximing on 2019-03-29. | ||
*/ | ||
module.exports.assetType = { | ||
page: 'page', | ||
component: 'component', | ||
app: 'app', | ||
normal: 'normal' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
/** | ||
* Created by ximing on 2019-03-14. | ||
*/ | ||
module.exports = async function(asset, opts) { | ||
const { helper, config } = this.mpb; | ||
console.log('outputFilePath', asset.outputFilePath); | ||
// 触发编译 | ||
await asset.render(); | ||
return asset; | ||
module.exports = function() { | ||
return async function(asset) { | ||
const { helper, config } = this; | ||
console.log('outputFilePath', asset.outputFilePath); | ||
// 触发编译 | ||
await asset.render(); | ||
return asset; | ||
}; | ||
}; |
Oops, something went wrong.