Skip to content

Commit

Permalink
remove url-loader dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jjclark1982 committed Sep 21, 2016
1 parent a5fa19f commit de19c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"postcss-loader": "^0.13.0",
"react-hot-loader": "^3.0.0-beta.4",
"style-loader": "^0.13.1",
"url-loader": "^0.5.7",
"webpack": "^1.13.2",
"webpack-dev-server": "^1.15.2",
"webpack-fail-plugin": "^1.0.5"
Expand Down
34 changes: 2 additions & 32 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,38 +73,8 @@ var config = {
loader: 'coffee'
},
{
test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
loader: "file"
},
{
test: /\.(woff|woff2)$/,
loader: "url",
query: {limit: 5000, prefix:"font/"}
},
{
test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
loader: "url",
query: {limit: 10000, mimetype:"application/octet-stream", name:"[path][name].[ext]?[hash]"}
},
{
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
loader: "url",
query: {limit: 10000, mimetype:"image/svg+xml", name:"[path][name].[ext]?[hash]"}
},
{
test: /\.gif/,
loader: "url",
query: {limit: 10000, mimetype:"image/gif", name:"[path][name].[ext]?[hash]"}
},
{
test: /\.jpe?g/,
loader: "url",
query: {limit: 10000, mimetype:"image/jpg", name:"[path][name].[ext]?[hash]"}
},
{
test: /\.png/,
loader: "url",
query: {limit: 10000, mimetype:"image/png", name:"[path][name].[ext]?[hash]"}
test: /\.(eot|ttf|woff2?|svg|png|jpe?g)$/,
loader: 'file'
}
]
}
Expand Down

0 comments on commit de19c58

Please sign in to comment.