summaryrefslogtreecommitdiff
path: root/webpack/module
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-22 05:05:19 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-22 05:05:19 +0900
commit0df6f5a2535374ddaed3daad586872574bb4b283 (patch)
tree2c6e46d0b73f82ec89cace9a752f4fff78e37699 /webpack/module
parentwip (diff)
downloadsharkey-0df6f5a2535374ddaed3daad586872574bb4b283.tar.gz
sharkey-0df6f5a2535374ddaed3daad586872574bb4b283.tar.bz2
sharkey-0df6f5a2535374ddaed3daad586872574bb4b283.zip
wip
Diffstat (limited to 'webpack/module')
-rw-r--r--webpack/module/rules/base64.ts18
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');
- }
- }
-});