Placing modernizr before css files


I need to place modernizr before my main css files, using Foundation something like

<link rel="stylesheet" href="css/foundation.css" />

<script src="js/vendor/modernizr.js"></script>

<link rel="stylesheet" href="css/custom.css" />

or at he very least putting the script before all of the css files.

I’ve created a separate asset bundle for modernizr and included a $jsOptions variable

public $jsOptions = ['position' => \yii\web\View::POS_HEAD];

However, all this does is place the script at the end of all my css files.

Rather than manually placing the script in the head in the layout, is it possible to achieve this using asset bundles?