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')); + } };