{"action":"opened","issue":{"url":"https://api.github.com/repos/amireh/happypack/issues/186","repository_url":"https://api.github.com/repos/amireh/happypack","labels_url":"https://api.github.com/repos/amireh/happypack/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/amireh/happypack/issues/186/comments","events_url":"https://api.github.com/repos/amireh/happypack/issues/186/events","html_url":"https://github.com/amireh/happypack/issues/186","id":254613987,"number":186,"title":"Is HappyPack able to \"load\" css and/or less imports inside a js file?","user":{"login":"wbern","id":25477382,"avatar_url":"https://avatars3.githubusercontent.com/u/25477382?v=4","gravatar_id":"","url":"https://api.github.com/users/wbern","html_url":"https://github.com/wbern","followers_url":"https://api.github.com/users/wbern/followers","following_url":"https://api.github.com/users/wbern/following{/other_user}","gists_url":"https://api.github.com/users/wbern/gists{/gist_id}","starred_url":"https://api.github.com/users/wbern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbern/subscriptions","organizations_url":"https://api.github.com/users/wbern/orgs","repos_url":"https://api.github.com/users/wbern/repos","events_url":"https://api.github.com/users/wbern/events{/privacy}","received_events_url":"https://api.github.com/users/wbern/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-01T11:32:17Z","updated_at":"2017-09-01T11:32:17Z","closed_at":null,"author_association":"NONE","body":"If I pass a `.js` rule that should go via HappyPack, I realize that the HappyPack plugin defined will come up a bit short for imports other than `.js`.\r\n\r\nIs there a way to resolve this, or am I misunderstanding something?\r\n\r\n```\r\nmodule: {\r\n        rules: [\r\n            {\r\n                test: /\\.js$/,\r\n                exclude: /(node_modules|bower_components)/,\r\n                use: {\r\n                    loader: \"happypack/loader?id=main\"\r\n                }\r\n            },\r\n            {\r\n                test: /\\.(eot|woff|ttf|png|svg|woff|woff2)(\\?|$)/,\r\n                loader: \"happypack/loader?id=files\"\r\n            }\r\n        ]\r\n    },\r\n```\r\n\r\nthe plugin:\r\n```\r\nnew HappyPack({\r\n            id: \"main\",\r\n            threadPool: happyThreadPool,\r\n            loaders: [\r\n                {\r\n                    loader: \"babel-loader\",\r\n                    options: {\r\n                        presets: [\r\n                            [\r\n                                \"es2015\",\r\n                                {\r\n                                    modules: false\r\n                                }\r\n                            ]\r\n                        ],\r\n                        plugins: [\r\n                            \"babel-plugin-transform-object-rest-spread\",\r\n                            \"syntax-dynamic-import\",\r\n                            [\r\n                                \"transform-react-jsx\",\r\n                                {\r\n                                    pragma: \"Sweact.createElement\"\r\n                                }\r\n                            ]\r\n                        ]\r\n                    }\r\n                }\r\n            ]\r\n        }),\r\n```\r\n\r\nI have defined some less and css HappyPack plugins, but I'm not sure how they will be involved when going through `.js` files."}}
{"actor":{"display_login":"wbern"}}