diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-22 05:05:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-22 05:05:19 +0900 |
| commit | 0df6f5a2535374ddaed3daad586872574bb4b283 (patch) | |
| tree | 2c6e46d0b73f82ec89cace9a752f4fff78e37699 /webpack/module/rules | |
| parent | wip (diff) | |
| download | sharkey-0df6f5a2535374ddaed3daad586872574bb4b283.tar.gz sharkey-0df6f5a2535374ddaed3daad586872574bb4b283.tar.bz2 sharkey-0df6f5a2535374ddaed3daad586872574bb4b283.zip | |
wip
Diffstat (limited to 'webpack/module/rules')
| -rw-r--r-- | webpack/module/rules/base64.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/webpack/module/rules/base64.ts b/webpack/module/rules/base64.ts deleted file mode 100644 index c2f6b9339e..0000000000 --- a/webpack/module/rules/base64.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Replace base64 symbols - */ - -import * as fs from 'fs'; - -export default () => ({ - enforce: 'pre', - test: /\.(vue|js)$/, - exclude: /node_modules/, - loader: 'string-replace-loader', - query: { - search: /%base64:(.+?)%/g, - replace: (_, key) => { - return fs.readFileSync(__dirname + '/../../../src/web/' + key, 'base64'); - } - } -}); |