{"action":"created","issue":{"url":"https://api.github.com/repos/JoeCianflone/laravel-elixir-sass-compass/issues/7","labels_url":"https://api.github.com/repos/JoeCianflone/laravel-elixir-sass-compass/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/JoeCianflone/laravel-elixir-sass-compass/issues/7/comments","events_url":"https://api.github.com/repos/JoeCianflone/laravel-elixir-sass-compass/issues/7/events","html_url":"https://github.com/JoeCianflone/laravel-elixir-sass-compass/pull/7","id":98606066,"number":7,"title":"Update default src and output dirs and remove unused gulp-notify module","user":{"login":"Landish","id":534610,"avatar_url":"https://avatars.githubusercontent.com/u/534610?v=3","gravatar_id":"","url":"https://api.github.com/users/Landish","html_url":"https://github.com/Landish","followers_url":"https://api.github.com/users/Landish/followers","following_url":"https://api.github.com/users/Landish/following{/other_user}","gists_url":"https://api.github.com/users/Landish/gists{/gist_id}","starred_url":"https://api.github.com/users/Landish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Landish/subscriptions","organizations_url":"https://api.github.com/users/Landish/orgs","repos_url":"https://api.github.com/users/Landish/repos","events_url":"https://api.github.com/users/Landish/events{/privacy}","received_events_url":"https://api.github.com/users/Landish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-02T12:21:29Z","updated_at":"2015-08-28T18:07:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JoeCianflone/laravel-elixir-sass-compass/pulls/7","html_url":"https://github.com/JoeCianflone/laravel-elixir-sass-compass/pull/7","diff_url":"https://github.com/JoeCianflone/laravel-elixir-sass-compass/pull/7.diff","patch_url":"https://github.com/JoeCianflone/laravel-elixir-sass-compass/pull/7.patch"},"body":"Ok, here's a scenario.\r\n\r\nBy default, Laravel will look through `resources/assets/sass` directory to find all `sass` files and it will compile and output into `public/css` directory.\r\n\r\n But, if you have in your `gulpfile.js` the following code: \r\n```js\r\nmix.compass('app.scss');\r\n```\r\nand run the `gulp compass` command, it will compile `sass/app.scss` into `css/app.css` file, which is not correct. \r\n\r\nJust like the `gulp sass` command is looking for `resources/assets/sass/app.scss` file to compile it into `public/css/app.css` file, this compass extension should do the same, which is fixed in this commit.\r\n\r\nAnd for those, who, are using Elixir with Non-Laravel project, they can change the source and destination path's with the following lines of code in their `elixir.json` file:\r\n\r\n```json\r\n{\r\n  \"assetsPath\" : \"src\",\r\n  \"publicPath\" : \"dist\"\r\n}\r\n```\r\n\r\nIn this case, all sass files from `src/sass` directory will be compiled into `dist/css` directory.\r\n\r\nAlternatively, they can change the source and destination path's in the `options` of compass extension like this:\r\n\r\n  \r\n ```js\r\nmix.compass('app.scss', 'path/to/output', {\r\n    sass: 'path/to/src/'\r\n});\r\n```\r\n\r\nIn this way, the `gulpfile.js` and optional `elixir.json` will be much more cleaner and simpler. "},"comment":{"url":"https://api.github.com/repos/JoeCianflone/laravel-elixir-sass-compass/issues/comments/135849482","html_url":"https://github.com/JoeCianflone/laravel-elixir-sass-compass/pull/7#issuecomment-135849482","issue_url":"https://api.github.com/repos/JoeCianflone/laravel-elixir-sass-compass/issues/7","id":135849482,"user":{"login":"ampersand","id":9910,"avatar_url":"https://avatars.githubusercontent.com/u/9910?v=3","gravatar_id":"","url":"https://api.github.com/users/ampersand","html_url":"https://github.com/ampersand","followers_url":"https://api.github.com/users/ampersand/followers","following_url":"https://api.github.com/users/ampersand/following{/other_user}","gists_url":"https://api.github.com/users/ampersand/gists{/gist_id}","starred_url":"https://api.github.com/users/ampersand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampersand/subscriptions","organizations_url":"https://api.github.com/users/ampersand/orgs","repos_url":"https://api.github.com/users/ampersand/repos","events_url":"https://api.github.com/users/ampersand/events{/privacy}","received_events_url":"https://api.github.com/users/ampersand/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T18:07:30Z","updated_at":"2015-08-28T18:07:30Z","body":":+1: "}}