diff options
author | Mike Greiling <mike@pixelcog.com> | 2019-07-29 23:25:35 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-07-29 23:25:35 +0300 |
commit | 7d68ac70aa111ab17cfb01e12ace7fa09fedb90b (patch) | |
tree | 84e77ec8abe139fda5e1e0aea3d182916f6fd745 /config | |
parent | 7064d48e2b74d5a92a16278085f3a0b46274911d (diff) |
Use file-loader to import icon sprites
Diffstat (limited to 'config')
-rw-r--r-- | config/webpack.config.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index cd793743eb7..f00a9ac0df9 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -157,7 +157,15 @@ module.exports = { loader: 'graphql-tag/loader', }, { + test: /icons\.svg$/, + loader: 'file-loader', + options: { + name: '[name].[hash:8].[ext]', + }, + }, + { test: /\.svg$/, + exclude: /icons\.svg$/, loader: 'raw-loader', }, { |