mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-16 06:57:36 -07:00
17 lines
367 B
TypeScript
17 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
|
|
}]
|
|
})
|
|
});
|