{"action":"created","issue":{"url":"https://api.github.com/repos/FabioAntunes/laravel-elixir-wiredep/issues/12","repository_url":"https://api.github.com/repos/FabioAntunes/laravel-elixir-wiredep","labels_url":"https://api.github.com/repos/FabioAntunes/laravel-elixir-wiredep/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/FabioAntunes/laravel-elixir-wiredep/issues/12/comments","events_url":"https://api.github.com/repos/FabioAntunes/laravel-elixir-wiredep/issues/12/events","html_url":"https://github.com/FabioAntunes/laravel-elixir-wiredep/issues/12","id":143352953,"number":12,"title":"I'm happy to announce :)","user":{"login":"FDiskas","id":468006,"avatar_url":"https://avatars.githubusercontent.com/u/468006?v=3","gravatar_id":"","url":"https://api.github.com/users/FDiskas","html_url":"https://github.com/FDiskas","followers_url":"https://api.github.com/users/FDiskas/followers","following_url":"https://api.github.com/users/FDiskas/following{/other_user}","gists_url":"https://api.github.com/users/FDiskas/gists{/gist_id}","starred_url":"https://api.github.com/users/FDiskas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FDiskas/subscriptions","organizations_url":"https://api.github.com/users/FDiskas/orgs","repos_url":"https://api.github.com/users/FDiskas/repos","events_url":"https://api.github.com/users/FDiskas/events{/privacy}","received_events_url":"https://api.github.com/users/FDiskas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-24T20:38:22Z","updated_at":"2016-03-24T21:10:54Z","closed_at":null,"body":"Yes I did it :) And yes its works.\r\nStill waiting for official support on https://github.com/jonkemp/useref/pull/7\r\nand your updates. So I hope you will bring back the old options and by default return assets with `asset()` function.\r\n\r\nMy **package.json**\r\n```json\r\n{\r\n  \"private\": true,\r\n  \"devDependencies\": {\r\n    \"gulp\": \"^3.8.8\"\r\n  },\r\n  \"dependencies\": {\r\n    \"laravel-elixir\": \"^4.0.0\",\r\n    \"laravel-elixir-useref\": \"^1.2.1\",\r\n    \"laravel-elixir-wiredep\": \"^2.1.0\",\r\n    \"useref\": \"git+https://github.com/CodersAKL/useref.git#master\"\r\n  }\r\n}\r\n```\r\n\r\nMy **gulp.js** file\r\n```js\r\nrequire('laravel-elixir');\r\nrequire('laravel-elixir-wiredep');\r\nrequire('laravel-elixir-useref');\r\n\r\nvar options = {\r\n\tfileTypes: {\r\n\t\tphp: {\r\n\t\t\tblock: /(([ \\t]*)<!--\\s*bower:*(\\S*)\\s*-->)(\\n|\\r|.)*?(<!--\\s*endbower\\s*-->)/gi,\r\n\t\t\tdetect: {\r\n\t\t\t\tjs: /<script.*src=['\"]([^'\"]+)/gi,\r\n\t\t\t\tcss: /<link.*href=['\"]([^'\"]+)/gi\r\n\t\t\t},\r\n\t\t\treplace: {\r\n\t\t\t\tjs: '<script src=\"{{ asset(\\'{{filePath}}\\') }}\"></script>',\r\n\t\t\t\tcss: '<link rel=\"stylesheet\" href=\"{{ asset(\\'{{filePath}}\\') }}\" />'\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\nelixir(function (mix) {\r\n\tmix\r\n\t\t.sass('app.scss')\r\n\t\t.browserify('app.js')\r\n\t\t.wiredep('php', {src: 'layouts/app.blade.php'}, options)\r\n\t\t.useref()\r\n\t\t.version(['js/vendors.min.js', 'css/vendors.min.css']);\r\n});\r\n```\r\nMy **layouts/app.blade.php** file\r\n```php\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <title>Laravel</title>\r\n    @if ( Config::get('app.debug') )\r\n        <!-- build:css(public) css/vendors.min.css -->\r\n        <!-- bower:css -->\r\n        <!-- endbower -->\r\n        <link rel=\"stylesheet\" href=\"{{ asset('css/app.css') }}\">\r\n        <!-- endbuild -->\r\n    @else\r\n        <link rel=\"stylesheet\" href=\"{{ elixir(\"css/vendors.min.css\") }}\">\r\n    @endif\r\n</head>\r\n<body id=\"app-layout\">\r\n    @if ( Config::get('app.debug') )\r\n        <!-- build:js(public) js/vendors.min.js -->\r\n        <!-- bower:js -->\r\n        <!-- endbower -->\r\n        <script src=\"{{ asset('js/app.js') }}\"></script>\r\n        <!-- endbuild -->\r\n    @else\r\n        <script src=\"{{ elixir('js/vendors.min.js') }}\"></script>\r\n    @endif\r\n</body>\r\n</html>\r\n``\r\n**.bowerrc**\r\n```json\r\n{\r\n\t\"directory\": \"public/assets/vendor\"\r\n}\r\n```\r\n**bower.json**:\r\n```json\r\n{\r\n  \"name\": \"laravel\",\r\n  \"description\": \"\",\r\n  \"main\": \"\",\r\n  \"authors\": [],\r\n  \"license\": \"MIT\",\r\n  \"moduleType\": [],\r\n  \"homepage\": \"\",\r\n  \"private\": true,\r\n  \"ignore\": [\r\n    \"**/.*\",\r\n    \"node_modules\",\r\n    \"bower_components\",\r\n    \"test\",\r\n    \"tests\"\r\n  ],\r\n  \"dependencies\": {\r\n    \"bootstrap-sass\": \"^3.3.6\",\r\n    \"bootstrap-select-sass\": \"^1.6.3\"\r\n  }\r\n}\r\n```\r\nAnd the result is\r\n```php\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    @if ( Config::get('app.debug') )\r\n        <!-- build:css(public) css/vendors.min.css -->\r\n        <!-- bower:css -->\r\n        <link rel=\"stylesheet\" href=\"{{ asset('/assets/vendor/bootstrap-select-sass/dist/css/bootstrap-select.css') }}\" />\r\n        <!-- endbower -->\r\n        <link rel=\"stylesheet\" href=\"{{ asset('css/app.css') }}\">\r\n        <!-- endbuild -->\r\n    @else\r\n        <link rel=\"stylesheet\" href=\"{{ elixir(\"css/vendors.min.css\") }}\">\r\n    @endif\r\n\r\n</head>\r\n<body id=\"app-layout\">\r\n    @if ( Config::get('app.debug') )\r\n        <!-- build:js(public) js/vendors.min.js -->\r\n        <!-- bower:js -->\r\n        <script src=\"{{ asset('/assets/vendor/jquery/dist/jquery.js') }}\"></script>\r\n        <script src=\"{{ asset('/assets/vendor/bootstrap-sass/assets/javascripts/bootstrap.js') }}\"></script>\r\n        <script src=\"{{ asset('/assets/vendor/bootstrap-select-sass/dist/js/bootstrap-select.js') }}\"></script>\r\n        <!-- endbower -->\r\n        <script src=\"{{ asset('js/app.js') }}\"></script>\r\n        <!-- endbuild -->\r\n    @else\r\n        <script src=\"{{ elixir('js/vendors.min.js') }}\"></script>\r\n    @endif\r\n</body>\r\n</html>\r\n```"},"comment":{"url":"https://api.github.com/repos/FabioAntunes/laravel-elixir-wiredep/issues/comments/201022056","html_url":"https://github.com/FabioAntunes/laravel-elixir-wiredep/issues/12#issuecomment-201022056","issue_url":"https://api.github.com/repos/FabioAntunes/laravel-elixir-wiredep/issues/12","id":201022056,"user":{"login":"FDiskas","id":468006,"avatar_url":"https://avatars.githubusercontent.com/u/468006?v=3","gravatar_id":"","url":"https://api.github.com/users/FDiskas","html_url":"https://github.com/FDiskas","followers_url":"https://api.github.com/users/FDiskas/followers","following_url":"https://api.github.com/users/FDiskas/following{/other_user}","gists_url":"https://api.github.com/users/FDiskas/gists{/gist_id}","starred_url":"https://api.github.com/users/FDiskas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FDiskas/subscriptions","organizations_url":"https://api.github.com/users/FDiskas/orgs","repos_url":"https://api.github.com/users/FDiskas/repos","events_url":"https://api.github.com/users/FDiskas/events{/privacy}","received_events_url":"https://api.github.com/users/FDiskas/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T21:10:54Z","updated_at":"2016-03-24T21:10:54Z","body":"But one problem. All original blade templates are replaced correctly, but all them are copied to the public directory to."}}