diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-15 23:07:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-15 23:07:23 +0900 |
| commit | a7601f7aa493db5d96b66fbbf79e92ff54c4ff28 (patch) | |
| tree | d9be1db31dea154ca3e9141277f63f77d630be5f /webpack/module/rules/base64.ts | |
| parent | wip (diff) | |
| download | sharkey-a7601f7aa493db5d96b66fbbf79e92ff54c4ff28.tar.gz sharkey-a7601f7aa493db5d96b66fbbf79e92ff54c4ff28.tar.bz2 sharkey-a7601f7aa493db5d96b66fbbf79e92ff54c4ff28.zip | |
wip
Diffstat (limited to 'webpack/module/rules/base64.ts')
| -rw-r--r-- | webpack/module/rules/base64.ts | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/webpack/module/rules/base64.ts b/webpack/module/rules/base64.ts index 886f0e8b38..c2f6b9339e 100644 --- a/webpack/module/rules/base64.ts +++ b/webpack/module/rules/base64.ts @@ -8,13 +8,11 @@ export default () => ({ enforce: 'pre', test: /\.(vue|js)$/, exclude: /node_modules/, - use: [{ - loader: 'replace-string-loader', - options: { - search: /%base64:(.+?)%/g, - replace: (_, key) => { - return fs.readFileSync(__dirname + '/../../../src/web/' + key, 'base64'); - } + loader: 'string-replace-loader', + query: { + search: /%base64:(.+?)%/g, + replace: (_, key) => { + return fs.readFileSync(__dirname + '/../../../src/web/' + key, 'base64'); } - }] + } }); |