Skip to content

Commit

Permalink
Local background image
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed May 20, 2017
1 parent d9c54ee commit e9cbd47
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
"string-similarity": "^1.1.0",
"style-loader": "^0.13.1",
"tcomb": "^3.2.15",
"url-loader": "^0.5.7",
"url-loader": "^0.5.8",
"vimeo": "^1.2.0",
"webpack": "^1.14.0",
"webpack-dev-middleware": "^1.9.0",
Expand Down
Binary file added resources/media/img/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions webpack.config.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ export default validate(merge(baseConfig, {
]
},

// Images
{
test: /\.(?:ico|gif|png|jpg|jpeg|webp)$/,
loader: [
'file?hash=sha512&digest=hex&name=[hash].[ext]',
'image-webpack?bypassOnDebug&optimizationLevel=7&interlaced=false'
]
},

{ test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff' },
{ test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff' },
{ test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/octet-stream' },
Expand Down
5 changes: 4 additions & 1 deletion webpack.config.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ export default validate(merge(baseConfig, {
// Images
{
test: /\.(?:ico|gif|png|jpg|jpeg|webp)$/,
loader: 'url-loader'
loader: [
'file?hash=sha512&digest=hex&name=[hash].[ext]',
'image-webpack?bypassOnDebug&optimizationLevel=7&interlaced=false'
]
}
]
},
Expand Down

0 comments on commit e9cbd47

Please sign in to comment.