mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
f3951e1680
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8079 Co-authored-by: Stefano Magni <173663+NoriSte@users.noreply.github.com> GitOrigin-RevId: 46b1ed03ab225fccc9d769203d1af11a6bcdb63e
15 lines
388 B
JavaScript
15 lines
388 B
JavaScript
const { merge } = require('webpack-merge');
|
|
const dynamicAssetLoader = require('unplugin-dynamic-asset-loader');
|
|
|
|
module.exports =
|
|
() =>
|
|
(config, { options, context }) => {
|
|
const isDevBuild = context.configurationName === 'development';
|
|
if (!isDevBuild) {
|
|
return config;
|
|
}
|
|
return merge(config, {
|
|
plugins: [dynamicAssetLoader.webpackPlugin()],
|
|
});
|
|
};
|