1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-11 21:29:13 +09:00
misskey/webpack/module/rules/fa.ts
2018-02-10 17:01:32 +09:00

18 lines
367 B
TypeScript

/**
* Replace fontawesome symbols
*/
const StringReplacePlugin = require('string-replace-webpack-plugin');
import { pattern, replacement } from '../../../src/common/build/fa';
export default () => ({
enforce: 'pre',
test: /\.(vue|js|ts)$/,
exclude: /node_modules/,
loader: StringReplacePlugin.replace({
replacements: [{
pattern, replacement
}]
})
});