{"action":"created","issue":{"url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin/issues/623","repository_url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin","labels_url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin/issues/623/comments","events_url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin/issues/623/events","html_url":"https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/623","id":256438038,"number":623,"title":"angular universal build:prod \"extract-text-webpack-plugin\" loader is used without the corresponding plugin","user":{"login":"peterpeterparker","id":16886711,"avatar_url":"https://avatars0.githubusercontent.com/u/16886711?v=4","gravatar_id":"","url":"https://api.github.com/users/peterpeterparker","html_url":"https://github.com/peterpeterparker","followers_url":"https://api.github.com/users/peterpeterparker/followers","following_url":"https://api.github.com/users/peterpeterparker/following{/other_user}","gists_url":"https://api.github.com/users/peterpeterparker/gists{/gist_id}","starred_url":"https://api.github.com/users/peterpeterparker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterpeterparker/subscriptions","organizations_url":"https://api.github.com/users/peterpeterparker/orgs","repos_url":"https://api.github.com/users/peterpeterparker/repos","events_url":"https://api.github.com/users/peterpeterparker/events{/privacy}","received_events_url":"https://api.github.com/users/peterpeterparker/received_events","type":"User","site_admin":false},"labels":[{"id":595392860,"url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin/labels/flag:%20Needs%20more%20info","name":"flag: Needs more info","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-09-09T13:09:19Z","updated_at":"2017-09-13T15:22:01Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI've got a universal project. I have integrated `extract-text-webpack-plugin`.\r\n\r\nWhen I debug doing `npm start` everything is fine.\r\nWhen I try do build for production `npm run build:prod` I face the following error:\r\n\r\n> ERROR in ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/null-loader!./node_modules/css-loader?{\"minimize\":true,\"sourceMap\":true}!./node_modules/resolve-url-loader?{\"sourceMap\":true}!./node_modules/sass-loader/lib/loader.js?{\"sourceMap\":true}!./src/app/app.component.scss\r\n>         Module build failed: Error: \"extract-text-webpack-plugin\" loader is used without the corresponding plugin, refer to https://github.com/webpack/extract-text-webpack-plugin for the usage example\r\n\r\nMy `webpack.common.js` is the following:\r\n\r\n    const {root} = require('./helpers');\r\n    \r\n    const webpack = require('webpack');\r\n    \r\n    const copyWebpackPlugin = require('copy-webpack-plugin');\r\n    \r\n    const ExtractTextPlugin = require('extract-text-webpack-plugin');\r\n    \r\n    /**\r\n     * This is a common webpack config which is the base for all builds\r\n     */\r\n    module.exports = {\r\n      devtool: 'source-map',\r\n      resolve: {\r\n            extensions: ['.ts', '.js']\r\n      },\r\n      output: {\r\n        path: root('dist')\r\n      },\r\n      module: {\r\n        rules: [\r\n          {test: /\\.ts$/, loader: '@ngtools/webpack'},\r\n          {test: /\\.html$/, loader: 'raw-loader'},\r\n          {\r\n            test: /\\.css$/,\r\n            use: ['to-string-loader'].concat(ExtractTextPlugin.extract({\r\n              fallback: 'null-loader',\r\n              //resolve-url-loader may be chained before sass-loader if necessary\r\n              use: [\r\n                {\r\n                  loader: 'css-loader', options: {\r\n                    minimize: true,\r\n                    sourceMap: true\r\n                  }\r\n                }\r\n              ]\r\n            }))\r\n          },\r\n          {\r\n            test: /\\.scss$/,\r\n            use: ['to-string-loader'].concat(ExtractTextPlugin.extract({\r\n              fallback: 'null-loader',\r\n              //resolve-url-loader may be chained before sass-loader if necessary\r\n              use: [\r\n                {\r\n                  loader: 'css-loader', options: {\r\n                    minimize: true,\r\n                    sourceMap: true\r\n                  }\r\n                },\r\n                {loader: 'resolve-url-loader', options: {sourceMap: true}},\r\n                {loader: 'sass-loader', options: {sourceMap: true}}\r\n              ]\r\n            }))\r\n          },\r\n          {\r\n            test: /\\.woff2?(\\?v=[0-9]\\.[0-9]\\.[0-9])?$/,\r\n            // Limiting the size of the woff fonts breaks font-awesome ONLY for the extract text plugin\r\n            // loader: \"url?limit=10000\"\r\n            use: \"url-loader\"\r\n          },\r\n          {\r\n            test: /\\.(ttf|eot|svg)(\\?[\\s\\S]+)?$/,\r\n            use: 'file-loader'\r\n          }\r\n        ],\r\n    loaders: [\r\n      {\r\n        test: /bootstrap-sass[\\/\\\\]assets[\\/\\\\]javascripts[\\/\\\\]/,\r\n        loader: 'imports-loader?jQuery=jquery,$=jquery,this=>window'\r\n      },\r\n          {test: /\\.(woff2?|svg)$/, loader: 'url-loader?limit=10000'},\r\n          {test: /\\.(ttf|eot)$/, loader: 'file-loader'}\r\n        ]\r\n      },\r\n      plugins: [\r\n        new copyWebpackPlugin([\r\n          {\r\n            from: './src/assets/',\r\n            to: './'\r\n          }\r\n        ], {\r\n          ignore: [\r\n            'fonts/**/*.*'\r\n          ]\r\n        }),\r\n        new webpack.ContextReplacementPlugin(/moment[\\/\\\\]locale$/, /a^/),\r\n        new ExtractTextPlugin('style.css')\r\n      ],\r\n      entry: ['bootstrap-loader', './app']\r\n    };\r\n\r\nVersions:\r\n\r\nNode 8.4.0\r\nNpm 5.3.0\r\nwebpack 3.3.0\r\nextract-text-webpack-plugin 3.0.0\r\nnull-loader 0.1.1\r\nsass-loader 6.0.6\r\ncss-loader 0.28.7\r\nto-string-loader 1.1.5\r\n    "},"comment":{"url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin/issues/comments/329202757","html_url":"https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/623#issuecomment-329202757","issue_url":"https://api.github.com/repos/webpack-contrib/extract-text-webpack-plugin/issues/623","id":329202757,"user":{"login":"peterpeterparker","id":16886711,"avatar_url":"https://avatars0.githubusercontent.com/u/16886711?v=4","gravatar_id":"","url":"https://api.github.com/users/peterpeterparker","html_url":"https://github.com/peterpeterparker","followers_url":"https://api.github.com/users/peterpeterparker/followers","following_url":"https://api.github.com/users/peterpeterparker/following{/other_user}","gists_url":"https://api.github.com/users/peterpeterparker/gists{/gist_id}","starred_url":"https://api.github.com/users/peterpeterparker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterpeterparker/subscriptions","organizations_url":"https://api.github.com/users/peterpeterparker/orgs","repos_url":"https://api.github.com/users/peterpeterparker/repos","events_url":"https://api.github.com/users/peterpeterparker/events{/privacy}","received_events_url":"https://api.github.com/users/peterpeterparker/received_events","type":"User","site_admin":false},"created_at":"2017-09-13T15:22:01Z","updated_at":"2017-09-13T15:22:01Z","author_association":"NONE","body":"@evilebottnawi sure, here you go:\r\n\r\n    git clone https://github.com/peterpeterparker/universal-extract\r\n    cd universal-extract\r\n    npm install\r\n    npm run build:prod"}}
{"actor":{"display_login":"peterpeterparker"}}