mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 15:02:11 +08:00
fix(@angular/cli): prevent .cur file inlining
IE does not support data URI cursors.
This commit is contained in:
parent
bf55bfd044
commit
a329014ddb
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user