Skip to content

Commit

Permalink
added alias resolve for style - #803
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Jan 19, 2018
1 parent e8135e1 commit dedf0e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/wepy-cli/src/compile-wpy.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import cTemplate from './compile-template';
import cScript from './compile-script';
import toWeb from './web/index';
import loader from './loader';
import resolve from './resolve';

export default {
_cacheWpys: {},
Expand Down Expand Up @@ -174,7 +175,8 @@ export default {
}

if (rstTypeObj.src) {
rstTypeObj.src = path.resolve(opath.dir, rstTypeObj.src);
// rstTypeObj.src = path.resolve(opath.dir, rstTypeObj.src);
rstTypeObj.src = resolve.resolveAlias(rstTypeObj.src, opath);
rstTypeObj.link = true;
} else {
rstTypeObj.link = false;
Expand Down

0 comments on commit dedf0e0

Please sign in to comment.