From afb36e8b3bcdfced5d30299e2bef2abb34de73ae Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Thu, 6 Oct 2016 17:37:06 +0100 Subject: [PATCH] fix(build): remove html-loader (#2537) fix https://github.com/angular/angular-cli/issues/2396 --- package.json | 1 - packages/angular-cli/models/webpack-build-common.ts | 2 +- packages/angular-cli/package.json | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index 35f634e11c97..2489da6f7831 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,6 @@ "fs.realpath": "^1.0.0", "glob": "^7.0.3", "handlebars": "^4.0.5", - "html-loader": "^0.4.4", "html-webpack-plugin": "^2.19.0", "istanbul-instrumenter-loader": "^0.2.0", "json-loader": "^0.5.4", diff --git a/packages/angular-cli/models/webpack-build-common.ts b/packages/angular-cli/models/webpack-build-common.ts index ec755c36979a..ed79dc8aba9d 100644 --- a/packages/angular-cli/models/webpack-build-common.ts +++ b/packages/angular-cli/models/webpack-build-common.ts @@ -94,7 +94,7 @@ export function getWebpackCommonConfig(        { test: /\.json$/, loader: 'json-loader' },        { test: /\.(jpg|png|gif)$/, loader: 'url-loader?limit=10000' }, -        { test: /\.html$/, loader: 'html-loader' }, +        { test: /\.html$/, loader: 'raw-loader' }, { test: /\.(otf|woff|ttf|svg)$/, loader: 'url?limit=10000' }, { test: /\.woff2$/, loader: 'url?limit=10000&mimetype=font/woff2' }, diff --git a/packages/angular-cli/package.json b/packages/angular-cli/package.json index 15f55fd89a29..4397a9bfb8df 100644 --- a/packages/angular-cli/package.json +++ b/packages/angular-cli/package.json @@ -54,7 +54,6 @@ "fs.realpath": "^1.0.0", "glob": "^7.0.3", "handlebars": "^4.0.5", - "html-loader": "^0.4.4", "html-webpack-plugin": "^2.19.0", "istanbul-instrumenter-loader": "^0.2.0", "json-loader": "^0.5.4",