From 8bac73d48a1e755132d758d0f54f9b98aa0d07c1 Mon Sep 17 00:00:00 2001 From: Jeroen Vinke Date: Thu, 19 Jul 2018 12:44:10 +0200 Subject: [PATCH] fix(requirejs/systemjs): fix duplicate index.html closes https://github.com/aurelia/cli/issues/898 --- lib/commands/new/buildsystems/cli/loaders/require.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/commands/new/buildsystems/cli/loaders/require.js b/lib/commands/new/buildsystems/cli/loaders/require.js index 742ae9c98..8284e26f0 100644 --- a/lib/commands/new/buildsystems/cli/loaders/require.js +++ b/lib/commands/new/buildsystems/cli/loaders/require.js @@ -25,6 +25,9 @@ module.exports = function(project, options) { .addToClientDependencies( 'requirejs', 'text' - ) - .addToContent(ProjectItem.resource('index.html', 'content/require.index.html')); + ); + + if (model.platform.id === 'web') { + project.addToContent(ProjectItem.resource('index.html', 'content/require.index.html')); + } };