Актуализация пакетов

This commit is contained in:
Book Pauk
2021-10-27 00:52:57 +07:00
parent dda2de58a8
commit 01c384c43a
4 changed files with 26 additions and 313 deletions

View File

@@ -37,15 +37,27 @@ module.exports = {
['@babel/plugin-proposal-decorators', { legacy: true }]
]
}
/*query: {
plugins: [
'syntax-dynamic-import',
'transform-decorators-legacy',
'transform-class-properties',
]
}*/
},
{
test: /\.(gif|png)$/,
type: 'asset/inline',
},
{
test: /\.jpg$/,
type: 'asset/resource',
generator: {
filename: 'images/[name]-[hash:6].[ext]'
},
},
{
test: /\.(ttf|eot|woff|woff2)$/,
type: 'asset/resource',
generator: {
filename: 'fonts/[name]-[hash:6].[ext]'
},
},
/*{
test: /\.gif$/,
loader: "url-loader",
options: {
@@ -72,7 +84,7 @@ module.exports = {
options: {
name: "fonts/[name]-[hash:6].[ext]"
}
},
},*/
]
},