1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-05 02:08:14 +09:00
hotomoe/webpack/module/rules/fa.ts
2017-12-17 14:35:30 +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: /\.(tag|js|ts)$/,
exclude: /node_modules/,
loader: StringReplacePlugin.replace({
replacements: [{
pattern, replacement
}]
})
});