mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
a226d514af
https://github.com/hasura/graphql-engine-mono/pull/2032 GitOrigin-RevId: d6552e990823acc3bdac829487e91ae931ac4345
69 lines
1.4 KiB
JavaScript
69 lines
1.4 KiB
JavaScript
module.exports = {
|
|
assetsRules: [
|
|
{
|
|
test: /\.css$/,
|
|
use: [
|
|
'style-loader',
|
|
{
|
|
loader: 'css-loader',
|
|
options: {
|
|
importLoaders: 1,
|
|
},
|
|
},
|
|
{
|
|
loader: 'postcss-loader',
|
|
options: {
|
|
postcssOptions: {
|
|
config: true,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
|
|
use: [
|
|
{
|
|
loader: 'url-loader',
|
|
options: { limit: 10000, mimetype: 'application/font-woff' },
|
|
},
|
|
],
|
|
},
|
|
{
|
|
test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/,
|
|
use: [
|
|
{
|
|
loader: 'url-loader',
|
|
options: { limit: 10000, mimetype: 'application/font-woff' },
|
|
},
|
|
],
|
|
},
|
|
{
|
|
test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
|
|
use: [
|
|
{
|
|
loader: 'url-loader',
|
|
options: { limit: 10000, mimetype: 'application/octet-stream' },
|
|
},
|
|
],
|
|
},
|
|
{
|
|
test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
|
|
use: [{ loader: 'file-loader' }],
|
|
},
|
|
{
|
|
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
|
|
use: [
|
|
{
|
|
loader: 'url-loader',
|
|
options: { limit: 10000, mimetype: 'image/svg+xml' },
|
|
},
|
|
],
|
|
},
|
|
{
|
|
test: /\.(jpeg|jpg|png|gif)$/,
|
|
use: [{ loader: 'url-loader', options: { limit: 10240 } }],
|
|
},
|
|
],
|
|
};
|