{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs-templates/webpack/issues/1328","repository_url":"https://api.github.com/repos/vuejs-templates/webpack","labels_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/1328/labels{/name}","comments_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/1328/comments","events_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/1328/events","html_url":"https://github.com/vuejs-templates/webpack/issues/1328","id":304112098,"number":1328,"title":"No PostCSS config found","user":{"login":"Sparkenstein","id":24642451,"avatar_url":"https://avatars3.githubusercontent.com/u/24642451?v=4","gravatar_id":"","url":"https://api.github.com/users/Sparkenstein","html_url":"https://github.com/Sparkenstein","followers_url":"https://api.github.com/users/Sparkenstein/followers","following_url":"https://api.github.com/users/Sparkenstein/following{/other_user}","gists_url":"https://api.github.com/users/Sparkenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/Sparkenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sparkenstein/subscriptions","organizations_url":"https://api.github.com/users/Sparkenstein/orgs","repos_url":"https://api.github.com/users/Sparkenstein/repos","events_url":"https://api.github.com/users/Sparkenstein/events{/privacy}","received_events_url":"https://api.github.com/users/Sparkenstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-10T22:43:31Z","updated_at":"2018-03-11T18:16:57Z","closed_at":null,"author_association":"NONE","body":"I am working on an application in webpack template, the same project works on linux but on windows when I run `npm run dev` it gives me error : No PostCSS config found in : /my/dir/name on all custom CSS and SCSS files. \r\nIf i change the configuration in webpack.base.conf.js, and add test for css and scss with `vue-loader`, the project compiles successfully but no style renders on webpage when I visit the link. only text. \r\nHere is the partial section from my package.json\r\n```JSON\r\n\"scripts\": {\r\n    \"dev\": \"webpack-dev-server --inline --progress --config build/webpack.dev.conf.js\",\r\n    \"start\": \"npm run dev\",\r\n    \"build\": \"node build/build.js\"\r\n  },\r\n\"dependencies\": {\r\n    \"buefy\": \"^0.6.3\",\r\n    \"node-sass\": \"^4.7.2\",\r\n    \"postcss-load-config\": \"^1.2.0\",\r\n    \"sass-loader\": \"^6.0.6\",\r\n    \"vue\": \"^2.5.2\",\r\n    \"vue-awesome\": \"^2.3.4\",\r\n    \"vue-material-design-icons\": \"^1.1.0\",\r\n    \"vue-router\": \"^3.0.1\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"autoprefixer\": \"^7.1.2\",\r\n    \"babel-core\": \"^6.22.1\",\r\n    \"babel-helper-vue-jsx-merge-props\": \"^2.0.3\",\r\n    \"babel-loader\": \"^7.1.1\",\r\n    \"babel-plugin-syntax-jsx\": \"^6.18.0\",\r\n    \"babel-plugin-transform-runtime\": \"^6.22.0\",\r\n    \"babel-plugin-transform-vue-jsx\": \"^3.5.0\",\r\n    \"babel-preset-env\": \"^1.3.2\",\r\n    \"babel-preset-stage-2\": \"^6.22.0\",\r\n    \"chalk\": \"^2.0.1\",\r\n    \"copy-webpack-plugin\": \"^4.0.1\",\r\n    \"css-loader\": \"^0.28.0\",\r\n    \"extract-text-webpack-plugin\": \"^3.0.0\",\r\n    \"file-loader\": \"^1.1.4\",\r\n    \"friendly-errors-webpack-plugin\": \"^1.6.1\",\r\n    \"html-webpack-plugin\": \"^2.30.1\",\r\n    \"node-notifier\": \"^5.1.2\",\r\n    \"optimize-css-assets-webpack-plugin\": \"^3.2.0\",\r\n    \"ora\": \"^1.2.0\",\r\n    \"portfinder\": \"^1.0.13\",\r\n    \"postcss-import\": \"^11.0.0\",\r\n    \"postcss-loader\": \"^2.0.8\",\r\n    \"postcss-url\": \"^7.2.1\",\r\n    \"rimraf\": \"^2.6.0\",\r\n    \"semver\": \"^5.3.0\",\r\n    \"shelljs\": \"^0.7.6\",\r\n    \"uglifyjs-webpack-plugin\": \"^1.1.1\",\r\n    \"url-loader\": \"^0.5.8\",\r\n    \"vue-loader\": \"^13.3.0\",\r\n    \"vue-style-loader\": \"^3.0.1\",\r\n    \"vue-template-compiler\": \"^2.5.2\",\r\n    \"webpack\": \"^3.6.0\",\r\n    \"webpack-bundle-analyzer\": \"^2.9.0\",\r\n    \"webpack-dev-server\": \"^2.9.1\",\r\n    \"webpack-merge\": \"^4.1.0\"\r\n  },\r\n```\r\nAlso, if I change this line:\r\n`rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })`\r\nto \r\n`rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: false})`\r\neverything works perfect, but I don't know if this is the acceptable solution. because the first approach works on my arch machine. \r\nHow can different behaviors on different platforms be possible?"},"comment":{"url":"https://api.github.com/repos/vuejs-templates/webpack/issues/comments/372136371","html_url":"https://github.com/vuejs-templates/webpack/issues/1328#issuecomment-372136371","issue_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/1328","id":372136371,"user":{"login":"LinusBorg","id":1444526,"avatar_url":"https://avatars3.githubusercontent.com/u/1444526?v=4","gravatar_id":"","url":"https://api.github.com/users/LinusBorg","html_url":"https://github.com/LinusBorg","followers_url":"https://api.github.com/users/LinusBorg/followers","following_url":"https://api.github.com/users/LinusBorg/following{/other_user}","gists_url":"https://api.github.com/users/LinusBorg/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusBorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusBorg/subscriptions","organizations_url":"https://api.github.com/users/LinusBorg/orgs","repos_url":"https://api.github.com/users/LinusBorg/repos","events_url":"https://api.github.com/users/LinusBorg/events{/privacy}","received_events_url":"https://api.github.com/users/LinusBorg/received_events","type":"User","site_admin":false},"created_at":"2018-03-11T18:16:57Z","updated_at":"2018-03-11T18:16:57Z","author_association":"CONTRIBUTOR","body":"Hi, sorry this isn't working for you.\r\n\r\n> How can different behaviors on different platforms be possible?\r\n\r\nIn most cases, this is related either to paths (`/` vs. `/`)  or to case-sensitivity (some OS / file-systems are case-sensitive, others aren't).\r\n\r\nSo is the postcss config file written in all lowercase? Where is it stored, did you alter it?\r\n\r\nI'm not quite sure what to look for, to be honest, a runnable reproduction would be helpful, as the error explanation is a bit sparse, a stack trace would be helpful.\r\n\r\n>  I don't know if this is the acceptable solution.\r\n\r\nNot really. That option make sure tht normal *css files are run through postcss for autoprefixing etc."}}
{"actor":{"display_login":"LinusBorg"}}