Skip to content

Commit

Permalink
feat(app): Change location for js fuse files
Browse files Browse the repository at this point in the history
Fixes #57
  • Loading branch information
thaiat committed Apr 6, 2016
1 parent 9af378b commit 61ee0e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion generators/app/templates/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ module.exports = {
template: 'index.html',
inject: 'body'
}),
// copy fuse js files
new CopyWebpackPlugin(isTargetFuse(target) ? [{
from: '../../../fuse',
to: './fuse'
}] : [], { ignore: ['*.ts'] }),
// copy other files
new CopyWebpackPlugin([{
from: 'index.!(html)'
}]
Expand All @@ -259,4 +265,4 @@ module.exports = {
isFuse: isTargetFuse(target)
})
].concat(pluginsProd)
};
};
4 changes: 2 additions & 2 deletions generators/target/templates/index.fuse.ux
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<JavaScript File="./common.js" ux:Global="common" />
<JavaScript File="./vendor.js" ux:Global="vendor" />
<JavaScript File="./bundle.js" ux:Global="bundle" />
<JavaScript File="../../../fuse/AngularRenderer.js" ux:Global="AngularRenderer" />
<JavaScript File="../../../fuse/AngularBootstrap.js" />
<JavaScript File="./fuse/AngularRenderer.js" ux:Global="AngularRenderer" />
<JavaScript File="./fuse/AngularBootstrap.js" />
<Main/>
</App>

0 comments on commit 61ee0e6

Please sign in to comment.