From 61ee0e636d0dca329468872e00f64b9aed99a4e4 Mon Sep 17 00:00:00 2001 From: Avi Haiat Date: Wed, 6 Apr 2016 13:52:20 +0100 Subject: [PATCH] feat(app): Change location for js fuse files Fixes #57 --- generators/app/templates/webpack.config.js | 8 +++++++- generators/target/templates/index.fuse.ux | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/generators/app/templates/webpack.config.js b/generators/app/templates/webpack.config.js index adce5b3..ee00e3d 100644 --- a/generators/app/templates/webpack.config.js +++ b/generators/app/templates/webpack.config.js @@ -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)' }] @@ -259,4 +265,4 @@ module.exports = { isFuse: isTargetFuse(target) }) ].concat(pluginsProd) -}; +}; \ No newline at end of file diff --git a/generators/target/templates/index.fuse.ux b/generators/target/templates/index.fuse.ux index 1b123c7..a3111fb 100644 --- a/generators/target/templates/index.fuse.ux +++ b/generators/target/templates/index.fuse.ux @@ -2,8 +2,8 @@ - - + +