{"action":"created","issue":{"url":"https://api.github.com/repos/YDJ-FE/ts-react-webpack4/issues/2","repository_url":"https://api.github.com/repos/YDJ-FE/ts-react-webpack4","labels_url":"https://api.github.com/repos/YDJ-FE/ts-react-webpack4/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/YDJ-FE/ts-react-webpack4/issues/2/comments","events_url":"https://api.github.com/repos/YDJ-FE/ts-react-webpack4/issues/2/events","html_url":"https://github.com/YDJ-FE/ts-react-webpack4/issues/2","id":342159289,"node_id":"MDU6SXNzdWUzNDIxNTkyODk=","number":2,"title":"idea scss cannot resolve file是如何解决的，运行打包均未出错","user":{"login":"HeartCloud","id":29745572,"node_id":"MDQ6VXNlcjI5NzQ1NTcy","avatar_url":"https://avatars0.githubusercontent.com/u/29745572?v=4","gravatar_id":"","url":"https://api.github.com/users/HeartCloud","html_url":"https://github.com/HeartCloud","followers_url":"https://api.github.com/users/HeartCloud/followers","following_url":"https://api.github.com/users/HeartCloud/following{/other_user}","gists_url":"https://api.github.com/users/HeartCloud/gists{/gist_id}","starred_url":"https://api.github.com/users/HeartCloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeartCloud/subscriptions","organizations_url":"https://api.github.com/users/HeartCloud/orgs","repos_url":"https://api.github.com/users/HeartCloud/repos","events_url":"https://api.github.com/users/HeartCloud/events{/privacy}","received_events_url":"https://api.github.com/users/HeartCloud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-18T03:06:35Z","updated_at":"2018-07-19T02:03:06Z","closed_at":null,"author_association":"NONE","body":"![image](https://user-images.githubusercontent.com/29745572/42857016-8563ad2a-8a7a-11e8-9753-014729fce091.png)\r\n"},"comment":{"url":"https://api.github.com/repos/YDJ-FE/ts-react-webpack4/issues/comments/406130735","html_url":"https://github.com/YDJ-FE/ts-react-webpack4/issues/2#issuecomment-406130735","issue_url":"https://api.github.com/repos/YDJ-FE/ts-react-webpack4/issues/2","id":406130735,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjEzMDczNQ==","user":{"login":"HeartCloud","id":29745572,"node_id":"MDQ6VXNlcjI5NzQ1NTcy","avatar_url":"https://avatars0.githubusercontent.com/u/29745572?v=4","gravatar_id":"","url":"https://api.github.com/users/HeartCloud","html_url":"https://github.com/HeartCloud","followers_url":"https://api.github.com/users/HeartCloud/followers","following_url":"https://api.github.com/users/HeartCloud/following{/other_user}","gists_url":"https://api.github.com/users/HeartCloud/gists{/gist_id}","starred_url":"https://api.github.com/users/HeartCloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeartCloud/subscriptions","organizations_url":"https://api.github.com/users/HeartCloud/orgs","repos_url":"https://api.github.com/users/HeartCloud/repos","events_url":"https://api.github.com/users/HeartCloud/events{/privacy}","received_events_url":"https://api.github.com/users/HeartCloud/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T02:03:06Z","updated_at":"2018-07-19T02:03:06Z","author_association":"NONE","body":"您好！以下是我的配置，可以正常运行和编译。但是webstorm会提示上述错误\r\n\r\nconst config = require('./config');\r\nconst {resolve} = require('./utils');\r\n\r\nconst sassLoader = {\r\n    loader: 'sass-loader',\r\n    options: {\r\n        includePaths: [resolve('src/styles')]\r\n    }\r\n};\r\n\r\nconst lessLoader = {\r\n    loader: 'less-loader',\r\n    options: {\r\n        javascriptEnabled: true,\r\n        modifyVars: theme,\r\n    }\r\n};\r\n\r\nconst typingsForCssModulesLoaderConf = {\r\n    loader: 'typings-for-css-modules-loader',\r\n    options: {\r\n        localIdentName: '[local]_[hash:base64:8]',\r\n        modules: true,\r\n        namedExport: true,\r\n        camelCase: true,\r\n        sass: true,\r\n        sourceMap: false\r\n    }\r\n};\r\n\r\nmodule.exports = [\r\n    {\r\n        test: /\\.css$/,\r\n        include: [resolve('node_modules')],\r\n        use: [\r\n            config.extractCss ? MiniCssExtractPlugin.loader : 'style-loader',\r\n            'css-loader'\r\n        ]\r\n    },\r\n    {\r\n        test: /\\.less/,\r\n        include: [resolve('node_modules')],\r\n        use: [\r\n            config.extractCss ? MiniCssExtractPlugin.loader : 'style-loader',\r\n            'css-loader',\r\n            'postcss-loader',\r\n            lessLoader\r\n        ]\r\n    },\r\n    {\r\n        test: /\\.scss$/,\r\n        include: [resolve('src')],\r\n        use: [\r\n            config.extractCss ? MiniCssExtractPlugin.loader : 'style-loader',\r\n            typingsForCssModulesLoaderConf,\r\n            sassLoader,\r\n            {loader: 'postcss-loader'}\r\n        ]\r\n    }\r\n];"}}
{"actor":{"display_login":"HeartCloud"}}