fix(@angular/cli): prevent .cur file inlining

IE does not support data URI cursors.
This commit is contained in:
Charles Lyding 2017-07-22 13:36:08 -04:00 committed by Filipe Silva
parent bf55bfd044
commit a329014ddb

View File

@ -106,9 +106,9 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
rules: [ rules: [
{ enforce: 'pre', test: /\.js$/, loader: 'source-map-loader', exclude: [nodeModules] }, { enforce: 'pre', test: /\.js$/, loader: 'source-map-loader', exclude: [nodeModules] },
{ test: /\.html$/, loader: 'raw-loader' }, { test: /\.html$/, loader: 'raw-loader' },
{ test: /\.(eot|svg)$/, loader: `file-loader?name=[name]${hashFormat.file}.[ext]` }, { test: /\.(eot|svg|cur)$/, loader: `file-loader?name=[name]${hashFormat.file}.[ext]` },
{ {
test: /\.(jpg|png|webp|gif|otf|ttf|woff|woff2|cur|ani)$/, test: /\.(jpg|png|webp|gif|otf|ttf|woff|woff2|ani)$/,
loader: `url-loader?name=[name]${hashFormat.file}.[ext]&limit=10000` loader: `url-loader?name=[name]${hashFormat.file}.[ext]&limit=10000`
} }
].concat(extraRules) ].concat(extraRules)