bigbuffet-rw/webpack/rules/git-refresh.ts

13 lines
314 B
TypeScript
Raw Normal View History

2022-10-14 13:43:32 -07:00
import { resolve } from 'path';
import type { RuleSetRule } from 'webpack';
/** Recompile code.js whenever git changes. */
const rule: RuleSetRule = {
test: resolve(__dirname, '../../app/soapbox/utils/code.js'),
use: {
loader: resolve(__dirname, '../loaders/git-loader.ts'),
2022-10-14 13:43:32 -07:00
},
};
export default rule;