{"action":"opened","issue":{"url":"https://api.github.com/repos/brunch/brunch/issues/1198","repository_url":"https://api.github.com/repos/brunch/brunch","labels_url":"https://api.github.com/repos/brunch/brunch/issues/1198/labels{/name}","comments_url":"https://api.github.com/repos/brunch/brunch/issues/1198/comments","events_url":"https://api.github.com/repos/brunch/brunch/issues/1198/events","html_url":"https://github.com/brunch/brunch/issues/1198","id":136094227,"number":1198,"title":"Brunch is concatenating a file twice","user":{"login":"ronnieoverby","id":101028,"avatar_url":"https://avatars.githubusercontent.com/u/101028?v=3","gravatar_id":"","url":"https://api.github.com/users/ronnieoverby","html_url":"https://github.com/ronnieoverby","followers_url":"https://api.github.com/users/ronnieoverby/followers","following_url":"https://api.github.com/users/ronnieoverby/following{/other_user}","gists_url":"https://api.github.com/users/ronnieoverby/gists{/gist_id}","starred_url":"https://api.github.com/users/ronnieoverby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronnieoverby/subscriptions","organizations_url":"https://api.github.com/users/ronnieoverby/orgs","repos_url":"https://api.github.com/users/ronnieoverby/repos","events_url":"https://api.github.com/users/ronnieoverby/events{/privacy}","received_events_url":"https://api.github.com/users/ronnieoverby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-24T15:30:28Z","updated_at":"2016-02-24T15:30:28Z","closed_at":null,"body":"### Description\r\n\r\nMy entry point '/app/application.js` file is getting contat'd 2 times in the build output (`main.js`). I have found that this is happening only when one of my other modules imports it. \r\n\r\nStrangely, I have also observed that when `brunch watch`ing, if I make changes to '/app/application.js` after the initial build, one instance of the concatenation will lag behind the other.\r\n\r\n### Environment\r\n\r\n1. Brunch: 2.3.2\r\n2. Node: 3.4.0\r\n3. NPM: v5.1.0\r\n4. Operating system: Windows 10\r\n\r\n### `package.json` contents\r\n\r\n```json\r\n{\r\n  \"repository\": {},\r\n  \"scripts\": {\r\n    \"grunt-build-dev-vs\": \"grunt build:dev-vs --vsconfig=debug\",\r\n    \"brunch\": \"brunch build -d\"\r\n  },\r\n  \"dependencies\": {\r\n    \"babel-brunch\": \"^6.0.0\",\r\n    \"babel-polyfill\": \"^6.2.0\",\r\n    \"brunch\": \"^2.3.2\",\r\n    \"javascript-brunch\": \"^2.0.0\",\r\n    \"less-brunch\": \"^2.0.0\",\r\n    \"lodash\": \"^4.3.0\",\r\n    \"wu\": \"^2.1.0\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"babel-preset-es2015\": \"^6.1.18\",\r\n    \"grunt\": \"^0.4.5\",\r\n    \"grunt-babel\": \"^6.0.0\",\r\n    \"grunt-bower-install-simple\": \"^0.9.3\",\r\n    \"grunt-bump\": \"0.0.15\",\r\n    \"grunt-changelog\": \"^0.2.2\",\r\n    \"grunt-cli\": \"^0.1.13\",\r\n    \"grunt-contrib-clean\": \"^0.6.0\",\r\n    \"grunt-contrib-concat\": \"^0.5.0\",\r\n    \"grunt-contrib-copy\": \"^0.5.0\",\r\n    \"grunt-contrib-htmlmin\": \"^0.3.0\",\r\n    \"grunt-contrib-uglify\": \"^0.5.1\",\r\n    \"grunt-recess\": \"^1.0.0\",\r\n    \"gruntfile-gtx\": \"^0.3.0\",\r\n    \"http-server\": \"^0.6.1\",\r\n    \"require-directory\": \"^2.0.0\"\r\n  }\r\n}\r\n```\r\n\r\n### brunch config contents\r\n```javascript\r\nmodule.exports = {\r\n    files: {\r\n        javascripts: {\r\n            joinTo: 'main.js',\r\n            order: {\r\n                before: [                \r\n                    '**/EventAggregator.js',\r\n                    '**/jquery.js',\r\n                    '**/jquery.dataTables.min.js',\r\n                    '**/jquery-jvectormap.min.js'\r\n                ]\r\n            }\r\n        },\r\n        stylesheets: {\r\n            joinTo: {\r\n                \"app.css\": '**\\\\app.less'\r\n            }\r\n        }\r\n    },\r\n    \r\n    plugins: {\r\n        'babel-brunch': {\r\n            presets: ['es2015'],                  \r\n        }\r\n    },\r\n    \r\n    npm: {\r\n        enabled: true,\r\n        globals: {\r\n            wu: \"wu\",\r\n        }\r\n    }\r\n};\r\n```\r\n\r\n### Other useful files, when present (`bower.json` etc.)\r\n"}}