use url-loader instead of file-loader

This commit is contained in:
casperlamboo 2017-12-11 11:45:57 +01:00
parent 48a2221566
commit a43cbfcc2f
3 changed files with 776 additions and 279 deletions

1048
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -66,7 +66,6 @@
"babel-preset-stage-0": "^6.24.1",
"cordova": "^7.1.0",
"css-loader": "^0.28.7",
"file-loader": "^1.1.5",
"html-webpack-plugin": "^2.30.1",
"html-webpack-template": "^6.0.2",
"raw-loader": "^0.5.1",
@ -80,6 +79,7 @@
"redux-promise-middleware": "^4.4.2",
"redux-thunk": "^2.2.0",
"style-loader": "^0.19.0",
"url-loader": "^0.6.2",
"webpack": "^3.8.1",
"webpack-bundle-analyzer": "^2.9.1",
"webpack-cordova-plugin": "^0.1.6",

View File

@ -60,10 +60,7 @@ module.exports = {
}, {
test: /\.(png|jpg|gif)$/,
use: {
loader: 'file-loader',
options: {
name: '[path][name].[ext]'
}
loader: 'url-loader?name=images/[name].[ext]'
}
}, {
test: /\.(svg|glsl|d3sketch)$/,