diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-11-06 01:40:11 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-06 01:40:11 +0900 |
| commit | 9f5dc2c0df0cdba1113697bdd71637a404444065 (patch) | |
| tree | a1d942cf6440f82244ef58ee7ff93103ff70f521 /webpack.config.ts | |
| parent | :art: (diff) | |
| download | sharkey-9f5dc2c0df0cdba1113697bdd71637a404444065.tar.gz sharkey-9f5dc2c0df0cdba1113697bdd71637a404444065.tar.bz2 sharkey-9f5dc2c0df0cdba1113697bdd71637a404444065.zip | |
[WIP] Use FontAwesome Component for Vue (#3127)
* wip
* Rename
* Clean up
* Clean up
* wip
* wip
* Enable tree shaking
* :v:
* :v:
* wip
* wip
* Clean up
Diffstat (limited to 'webpack.config.ts')
| -rw-r--r-- | webpack.config.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/webpack.config.ts b/webpack.config.ts index 9f2416bde6..03ceeaa51c 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -13,7 +13,6 @@ const ProgressBarPlugin = require('progress-bar-webpack-plugin'); import I18nReplacer from './src/misc/i18n'; import { pattern as i18nPattern, replacement as i18nReplacement } from './webpack/i18n'; -import { pattern as faPattern, replacement as faReplacement } from './src/misc/fa'; const constants = require('./src/const.json'); const locales = require('./locales'); @@ -22,15 +21,11 @@ const version = meta.clientVersion; const codename = meta.codename; declare var global: { - faReplacement: typeof faReplacement; collapseSpacesReplacement: any; - base64replacement: any; i18nReplacement: typeof i18nReplacement; }; //#region Replacer definitions -global['faReplacement'] = faReplacement; - global['collapseSpacesReplacement'] = (html: string) => { return minifyHtml(html, { collapseWhitespace: true, @@ -39,10 +34,6 @@ global['collapseSpacesReplacement'] = (html: string) => { }).replace(/\t/g, ''); }; -global['base64replacement'] = (_: any, key: string) => { - return fs.readFileSync(`${__dirname}/src/client/${key}`, 'base64'); -}; - global['i18nReplacement'] = i18nReplacement; //#endregion @@ -142,16 +133,10 @@ module.exports = { loader: 'replace', query: { qs: [{ - search: /%base64:(.+?)%/g.toString(), - replace: 'base64replacement' - }, { search: i18nPattern.toString(), replace: 'i18nReplacement', i18n: true }, { - search: faPattern.toString(), - replace: 'faReplacement' - }, { search: /^<template>([\s\S]+?)\r?\n<\/template>/.toString(), replace: 'collapseSpacesReplacement' }] @@ -218,9 +203,6 @@ module.exports = { search: i18nPattern.toString(), replace: 'i18nReplacement', i18n: true - }, { - search: faPattern.toString(), - replace: 'faReplacement' }] } }] |