From 20100b01469a84184f380f20ef6feb08d9399b8d Mon Sep 17 00:00:00 2001 From: Jamie Date: Mon, 13 Aug 2018 22:14:46 +0100 Subject: [PATCH] Fixed #2424 --- src/Ombi/webpack.config.common.ts | 5 +++-- src/Ombi/webpack.config.ts | 1 + src/Ombi/webpack.config.vendor.ts | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Ombi/webpack.config.common.ts b/src/Ombi/webpack.config.common.ts index 2d7d22ecf..54835ae2e 100644 --- a/src/Ombi/webpack.config.common.ts +++ b/src/Ombi/webpack.config.common.ts @@ -1,3 +1,4 @@ +"use strict"; import { AngularCompilerPlugin } from "@ngtools/webpack"; import * as MiniCssExtractPlugin from "mini-css-extract-plugin"; import * as path from "path"; @@ -35,7 +36,7 @@ export const WebpackCommonConfig = (env: any, type: string) => { output: { path: path.resolve(outputDir), filename: "[name].js", - chunkFilename: "[id].chunk.js", + chunkFilename: "[id].[hash].chunk.js", publicPath: "/dist/", }, module: { @@ -46,7 +47,7 @@ export const WebpackCommonConfig = (env: any, type: string) => { { test: /\.scss$/, exclude: /ClientApp/, use: [MiniCssExtractPlugin.loader, cssLoader, "sass-loader"] }, { test: /\.scss$/, include: /ClientApp(\\|\/)app/, use: ["to-string-loader", cssLoader, "sass-loader"] }, { test: /\.scss$/, include: /ClientApp(\\|\/)styles/, use: ["style-loader", cssLoader, "sass-loader"] }, - { test: /\.(png|jpg|jpeg|gif|woff|woff2|eot|ttf|svg)(\?|$)/, use: "url-loader?limit=8192" }, + { test: /\.(png|woff|woff2|eot|ttf|svg|gif)(\?|$)/, use: "url-loader?limit=100000" }, { test: /[\/\\]@angular[\/\\].+\.js$/, parser: { system: true } }, // ignore System.import warnings https://github.com/angular/angular/issues/21560 ], }, diff --git a/src/Ombi/webpack.config.ts b/src/Ombi/webpack.config.ts index 4f8b94594..0ab82c8dc 100644 --- a/src/Ombi/webpack.config.ts +++ b/src/Ombi/webpack.config.ts @@ -1,3 +1,4 @@ +"use strict"; import * as path from "path"; import { Configuration, DllReferencePlugin } from "webpack"; import * as webpackMerge from "webpack-merge"; diff --git a/src/Ombi/webpack.config.vendor.ts b/src/Ombi/webpack.config.vendor.ts index d0a34cd72..e4ad442ab 100644 --- a/src/Ombi/webpack.config.vendor.ts +++ b/src/Ombi/webpack.config.vendor.ts @@ -1,3 +1,4 @@ +"use strict"; import * as path from "path"; import * as webpack from "webpack"; import * as webpackMerge from "webpack-merge";