bigbuffet-rw/webpack/rules/git-refresh.ts
2022-10-14 15:52:02 -05:00

13 lines
No EOL
314 B
TypeScript

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'),
},
};
export default rule;