Поправки конфига webpack

This commit is contained in:
Book Pauk
2019-02-02 01:20:48 +07:00
parent 9a8f4b0598
commit cff5f9e492

View File

@@ -33,16 +33,14 @@ module.exports = {
test: /\.gif$/,
loader: "url-loader",
options: {
name: "images/[name]-[hash:6].[ext]",
limit: 10000
name: "images/[name]-[hash:6].[ext]"
}
},
{
test: /\.png$/,
loader: "url-loader",
options: {
name: "images/[name]-[hash:6].[ext]",
limit: 10000
name: "images/[name]-[hash:6].[ext]"
}
},
{
@@ -56,7 +54,7 @@ module.exports = {
test: /\.(ttf|eot|woff|woff2)$/,
loader: "file-loader",
options: {
prefix: "font/"
name: "fonts/[name]-[hash:6].[ext]"
}
},
]