mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
4c8687fdab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2421 Co-authored-by: Martin Mark <74692114+martin-hasura@users.noreply.github.com> GitOrigin-RevId: 52dc6e600ebc174616e3f408c4394a3993b6dae7
77 lines
1.6 KiB
JavaScript
77 lines
1.6 KiB
JavaScript
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
resolvePlugins: [
|
|
new TsconfigPathsPlugin({
|
|
configFile: path.resolve(__dirname, '..', 'tsconfig.json'),
|
|
}),
|
|
],
|
|
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 } }],
|
|
},
|
|
],
|
|
};
|