Skip to content

Commit

Permalink
Merge pull request #88 from RobLoach/bornemix-master
Browse files Browse the repository at this point in the history
Put config before require.js
  • Loading branch information
RobLoach authored Jul 16, 2016
2 parents 075be66 + 1cd302a commit 59f93ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ComponentInstaller/Process/RequireJsProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public function process()
}

$assets = $this->newAssetCollection();
$assets->add(new FileAsset(dirname(__DIR__) . '/Resources/require.js'));
$assets->add(new StringAsset($requireConfig));
$assets->add(new FileAsset(dirname(__DIR__) . '/Resources/require.js'));

// Append the config to the require.js and write it.
if (file_put_contents($this->componentDir . '/require.js', $assets->dump()) === FALSE) {
Expand Down

0 comments on commit 59f93ec

Please sign in to comment.