Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

use image-webpack-loader to optimize images #287

Merged
merged 1 commit into from
Sep 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"gluestick-shared": "0.4.15",
"history": "3.0.0",
"http-proxy-middleware": "0.17.1",
"image-webpack-loader": "2.0.0",
"inquirer": "1.0.3",
"jsdom": "9.3.0",
"json-loader": "0.5.4",
Expand Down
5 changes: 4 additions & 1 deletion src/config/webpack-shared-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ module.exports = {
},
{
test: webpackIsomorphicToolsPlugin.regular_expression("images"),
loader: "file-loader?name=[name]-[hash].[ext]"
loaders: [
"file-loader?name=[name]-[hash].[ext]",
"image-webpack"
]
},
{
test: webpackIsomorphicToolsPlugin.regular_expression("fonts"),
Expand Down
1 change: 1 addition & 0 deletions templates/new/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"file-loader": "0.8.5",
"gluestick-shared": "0.4.15",
"history": "3.0.0",
"image-webpack-loader": "2.0.0",
"json-loader": "0.5.4",
"node-sass": "3.7.0",
"oy-vey": "0.7.0",
Expand Down