mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02:57 -07:00
Fixed #2424
This commit is contained in:
parent
df783d44b9
commit
20100b0146
3 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
],
|
||||
},
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
"use strict";
|
||||
import * as path from "path";
|
||||
import { Configuration, DllReferencePlugin } from "webpack";
|
||||
import * as webpackMerge from "webpack-merge";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
"use strict";
|
||||
import * as path from "path";
|
||||
import * as webpack from "webpack";
|
||||
import * as webpackMerge from "webpack-merge";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue