use url-loader instead of file-loader

pull/6/head
casperlamboo 5 years ago
parent 48a2221566
commit a43cbfcc2f
  1. 1048
      package-lock.json
  2. 2
      package.json
  3. 5
      webpack.config.js

1048
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -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",

@ -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)$/,

Loading…
Cancel
Save