Trying to get this to work on heroku's limits.
This commit is contained in:
@ -26,9 +26,9 @@ const
|
|||||||
fs = require('fs'),
|
fs = require('fs'),
|
||||||
|
|
||||||
webpack = require('webpack'),
|
webpack = require('webpack'),
|
||||||
SharpLoader = require('responsive-loader/sharp'),
|
JimpLoader = require('responsive-loader/jimp'),
|
||||||
|
//SharpLoader = require('responsive-loader/sharp'),
|
||||||
HtmlWebpackPlugin = require('html-webpack-plugin'),
|
HtmlWebpackPlugin = require('html-webpack-plugin'),
|
||||||
CompressionPlugin = require("compression-webpack-plugin"),
|
|
||||||
TerserPlugin = require('terser-webpack-plugin'),
|
TerserPlugin = require('terser-webpack-plugin'),
|
||||||
MiniCssExtractPlugin = require("mini-css-extract-plugin"),
|
MiniCssExtractPlugin = require("mini-css-extract-plugin"),
|
||||||
OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin")
|
OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin")
|
||||||
@ -75,7 +75,7 @@ module.exports = (isDev) => {
|
|||||||
{
|
{
|
||||||
"targets": {
|
"targets": {
|
||||||
"node": "current",
|
"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
|
"useBuiltIns": false
|
||||||
}
|
}
|
||||||
@ -112,7 +112,7 @@ module.exports = (isDev) => {
|
|||||||
use: [{
|
use: [{
|
||||||
loader: "responsive-loader",
|
loader: "responsive-loader",
|
||||||
options: {
|
options: {
|
||||||
adapter: SharpLoader,
|
//adapter: SharpLoader,
|
||||||
sizes: [500, 1000, 2500],
|
sizes: [500, 1000, 2500],
|
||||||
name: "[path][name]_[width]x.[ext]",
|
name: "[path][name]_[width]x.[ext]",
|
||||||
context: 'public'
|
context: 'public'
|
||||||
|
Reference in New Issue
Block a user