Skip to content

Commit

Permalink
fix(cli): fixed assets missing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Oct 2, 2018
1 parent 7f5fa28 commit 0b52389
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/cli/core/plugins/build/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
exports = module.exports = function () {

this.register('build-assets', function buildAssets () {

let result = [];
let assets = this.assets;

Expand All @@ -14,11 +14,7 @@ exports = module.exports = function () {
[].concat(requires, urls).forEach(file => {

let fileData = this.assets.data(file);

if (fileData.type === 'require') {
this.hookSeq('script-dep-fix', fileData);
}

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

result.push({
Expand Down

0 comments on commit 0b52389

Please sign in to comment.