Skip to content

Commit

Permalink
fix(build): use html-loader to figureprint images (angular#3415)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhicheng Wang committed Oct 26, 2017
1 parent 15cf37e commit 0fd18be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions packages/@angular/cli/models/webpack-configs/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const SilentError = require('silent-error');
* know they are used.
*
* require('source-map-loader')
* require('raw-loader')
* require('html-loader')
* require('url-loader')
* require('file-loader')
* require('@angular-devkit/build-optimizer')
Expand Down Expand Up @@ -188,7 +188,13 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
},
module: {
rules: [
{ test: /\.html$/, loader: 'raw-loader' },
{
test: /\.html$/,
loader: 'html-loader',
options: {
root: appRoot,
}
},
{
test: /\.(eot|svg|cur)$/,
loader: 'file-loader',
Expand Down
2 changes: 1 addition & 1 deletion packages/@angular/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"postcss-custom-properties": "^6.1.0",
"postcss-loader": "^1.3.3",
"postcss-url": "^5.1.2",
"raw-loader": "^0.5.1",
"html-loader": "^0.5.1",
"resolve": "^1.1.7",
"rxjs": "^5.4.2",
"sass-loader": "^6.0.3",
Expand Down

0 comments on commit 0fd18be

Please sign in to comment.