Skip to content

Commit

Permalink
fix(cli): fixed url assets dep error
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Oct 18, 2018
1 parent 58c1556 commit a207e57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cli/core/plugins/build/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ exports = module.exports = function () {
[].concat(requires, urls).forEach(file => {

let fileData = this.assets.data(file);
this.hookSeq('script-dep-fix', fileData);

if (fileData.type !== 'url') {
this.hookSeq('script-dep-fix', fileData);
}
let targetFile = this.getTarget(file);

result.push({
Expand Down

1 comment on commit a207e57

@Gcaufy
Copy link
Collaborator Author

@Gcaufy Gcaufy commented on a207e57 Oct 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.