From 238cb386b146c64728bd36ae38b9905dcc113501 Mon Sep 17 00:00:00 2001 From: Erik Rasmussen Date: Thu, 30 Jul 2015 23:02:49 +0200 Subject: [PATCH] switched back to file-loader to avoid error from requireServerImage() fixes #39 --- webpack/dev.config.js | 3 ++- webpack/prod.config.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/webpack/dev.config.js b/webpack/dev.config.js index 7095f8fd3..e5ba13ef6 100755 --- a/webpack/dev.config.js +++ b/webpack/dev.config.js @@ -24,7 +24,8 @@ module.exports = { }, module: { loaders: [ - { test: /\.(jpe?g|png|gif|svg)$/, loader: 'url', query: {limit: 10240} }, + { test: /\.(jpe?g|png|gif|svg)$/, loader: 'file' }, + //{ test: /\.(jpe?g|png|gif|svg)$/, loader: 'url', query: {limit: 10240} }, { test: /\.js$/, exclude: /node_modules/, loaders: ['react-hot', 'babel?stage=0&optional=runtime&plugins=typecheck']}, { test: /\.json$/, loader: 'json-loader' }, { test: /\.scss$/, loader: 'style!css?modules&importLoaders=2&localIdentName=[local]___[hash:base64:5]!autoprefixer?browsers=last 2 version!sass?outputStyle=expanded&sourceMap=true&sourceMapContents=true' } diff --git a/webpack/prod.config.js b/webpack/prod.config.js index f708f627f..d0884ddc7 100755 --- a/webpack/prod.config.js +++ b/webpack/prod.config.js @@ -24,7 +24,8 @@ module.exports = { }, module: { loaders: [ - { test: /\.(jpe?g|png|gif|svg)$/, loader: 'url', query: {limit: 10240} }, + //{ test: /\.(jpe?g|png|gif|svg)$/, loader: 'url', query: {limit: 10240} }, + { test: /\.(jpe?g|png|gif|svg)$/, loader: 'file' }, { test: /\.js$/, exclude: /node_modules/, loaders: [strip.loader('debug'), 'babel?stage=0&optional=runtime&plugins=typecheck']}, { test: /\.json$/, loader: 'json-loader' }, { test: /\.scss$/, loader: ExtractTextPlugin.extract('style', 'css?modules&importLoaders=2!autoprefixer?browsers=last 2 version!sass?outputStyle=expanded&sourceMap=true&sourceMapContents=true') }