simplify config entry

This commit is contained in:
Bruno Windels 2019-02-20 09:39:42 +01:00
parent e56206241b
commit 6a9c053536

View file

@ -71,15 +71,11 @@ module.exports = {
// riot-web/webapp/i18n during build by copy-res.js // riot-web/webapp/i18n during build by copy-res.js
test: /\.*languages.json$/, test: /\.*languages.json$/,
type: "javascript/auto", type: "javascript/auto",
use: [
{
loader: 'file-loader', loader: 'file-loader',
options: { options: {
name: 'i18n/[name].[hash:7].[ext]', name: 'i18n/[name].[hash:7].[ext]',
}, },
}, },
],
},
{ {
test: /\.(gif|png|svg|ttf|xml|ico)$/, test: /\.(gif|png|svg|ttf|xml|ico)$/,
// Use a content-based hash in the name so that we can set a long cache // Use a content-based hash in the name so that we can set a long cache