From c541380ecf2a746f1a47d00a8c88aa839185826f Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Mon, 26 Nov 2018 22:34:07 +1100 Subject: [PATCH] Trying to get this to work on heroku's limits. --- private/webpack/WebpackCompiler.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/private/webpack/WebpackCompiler.js b/private/webpack/WebpackCompiler.js index 140ebb4..3d8fd64 100644 --- a/private/webpack/WebpackCompiler.js +++ b/private/webpack/WebpackCompiler.js @@ -26,9 +26,9 @@ const fs = require('fs'), webpack = require('webpack'), - SharpLoader = require('responsive-loader/sharp'), + JimpLoader = require('responsive-loader/jimp'), + //SharpLoader = require('responsive-loader/sharp'), HtmlWebpackPlugin = require('html-webpack-plugin'), - CompressionPlugin = require("compression-webpack-plugin"), TerserPlugin = require('terser-webpack-plugin'), MiniCssExtractPlugin = require("mini-css-extract-plugin"), OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin") @@ -75,7 +75,7 @@ module.exports = (isDev) => { { "targets": { "node": "current", - "browsers": [ "Chrome >= 41", "FireFox >= 44", "Safari >= 7", "Explorer 11", "last 4 Edge versions" ] + "browsers": [ "Chrome >= 41", "FireFox >= 44", "Safari >= 7", "Explorer 11", "last 2 Edge versions" ] }, "useBuiltIns": false } @@ -112,7 +112,7 @@ module.exports = (isDev) => { use: [{ loader: "responsive-loader", options: { - adapter: SharpLoader, + //adapter: SharpLoader, sizes: [500, 1000, 2500], name: "[path][name]_[width]x.[ext]", context: 'public'