Поправки конфига webpack
This commit is contained in:
@@ -33,16 +33,14 @@ module.exports = {
|
|||||||
test: /\.gif$/,
|
test: /\.gif$/,
|
||||||
loader: "url-loader",
|
loader: "url-loader",
|
||||||
options: {
|
options: {
|
||||||
name: "images/[name]-[hash:6].[ext]",
|
name: "images/[name]-[hash:6].[ext]"
|
||||||
limit: 10000
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.png$/,
|
test: /\.png$/,
|
||||||
loader: "url-loader",
|
loader: "url-loader",
|
||||||
options: {
|
options: {
|
||||||
name: "images/[name]-[hash:6].[ext]",
|
name: "images/[name]-[hash:6].[ext]"
|
||||||
limit: 10000
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -56,7 +54,7 @@ module.exports = {
|
|||||||
test: /\.(ttf|eot|woff|woff2)$/,
|
test: /\.(ttf|eot|woff|woff2)$/,
|
||||||
loader: "file-loader",
|
loader: "file-loader",
|
||||||
options: {
|
options: {
|
||||||
prefix: "font/"
|
name: "fonts/[name]-[hash:6].[ext]"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user