{"action":"closed","issue":{"url":"https://api.github.com/repos/bholloway/resolve-url-loader/issues/65","repository_url":"https://api.github.com/repos/bholloway/resolve-url-loader","labels_url":"https://api.github.com/repos/bholloway/resolve-url-loader/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/bholloway/resolve-url-loader/issues/65/comments","events_url":"https://api.github.com/repos/bholloway/resolve-url-loader/issues/65/events","html_url":"https://github.com/bholloway/resolve-url-loader/issues/65","id":249131329,"number":65,"title":"Resolve-url-loader doesn't appear to make any change to compiled CSS","user":{"login":"jasonlav","id":7593912,"avatar_url":"https://avatars2.githubusercontent.com/u/7593912?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonlav","html_url":"https://github.com/jasonlav","followers_url":"https://api.github.com/users/jasonlav/followers","following_url":"https://api.github.com/users/jasonlav/following{/other_user}","gists_url":"https://api.github.com/users/jasonlav/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonlav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonlav/subscriptions","organizations_url":"https://api.github.com/users/jasonlav/orgs","repos_url":"https://api.github.com/users/jasonlav/repos","events_url":"https://api.github.com/users/jasonlav/events{/privacy}","received_events_url":"https://api.github.com/users/jasonlav/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-09T19:09:06Z","updated_at":"2017-08-11T15:00:58Z","closed_at":"2017-08-11T15:00:58Z","body":"extract-text-webpack-plugin: ^3.0.0\r\nnode-sass: ^4.5.3\r\nsass-loader: ^6.0.6\r\nwebpack: ^3.5.1\r\nresolve-url-loader: ^2.1.0\r\n\r\napp.css appears to remain unchanged regardless of implementation of resolve-url-loader.\r\n\r\n*File structure*\r\n```\r\nexample/\r\nexample/\r\n├── dist/\r\n│    ├── assets\r\n│    │    ├── media\r\n│    │    │    └── logo.png\r\n│    │    └── styles\r\n│    │        ├── app.css\r\n│    │        └── app.css.map\r\n│    ├── index.html\r\n│    └── app.bundle.js\r\n└── src/\r\n    ├── assets\r\n    │    ├── media\r\n    │    │    └── logo.png\r\n    │    └── styles\r\n    │        └── app.scss\r\n    └── app.js\r\n```\r\n\r\n*app.scss*\r\n```\r\nbody {\r\n  background: url(../media/logo.png);\r\n}\r\n```\r\n\r\n*app.css*\r\n```\r\nbody {\r\n  background: url(assets/media/logo.png); //This should be ../media/logo.png\r\n}\r\n```\r\n\r\n*app.js*\r\n```\r\nrequire('./assets/styles/app.scss');\r\n```\r\n\r\n*webpack.config.js*\r\n```\r\nconst path = require('path');\r\nconst ExtractTextPlugin = require('extract-text-webpack-plugin');\r\n\r\nmodule.exports = {\r\n  entry: './src/app.js',\r\n  output: {\r\n    path: path.resolve(__dirname, 'dist'),\r\n    filename: 'app.bundle.js'\r\n  },\r\n  devtool: 'source-map',\r\n  module: {\r\n    loaders: [\r\n      {\r\n        test: /\\.scss$/,\r\n        use: ExtractTextPlugin.extract({\r\n          use: [\r\n            {\r\n              loader: 'css-loader',\r\n              options: {\r\n                sourceMap: true\r\n              }\r\n            }, {\r\n              loader: 'resolve-url-loader'\r\n            }, {\r\n              loader: 'sass-loader',\r\n              options: {\r\n                sourceMap: true\r\n              }\r\n            }\r\n          ]\r\n        })\r\n      }, {\r\n        test: /\\.png$/,\r\n        use: [\r\n          {\r\n            loader: 'file-loader',\r\n            options: {\r\n              name: 'assets/media/[name].[ext]'\r\n            }\r\n          }\r\n        ]\r\n      }\r\n    ]\r\n  },\r\n  plugins: [\r\n    new ExtractTextPlugin({\r\n      filename: 'assets/styles/app.css'\r\n    })\r\n  ]\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"jasonlav"}}