diff options
author | Fred Carlsen <fred@sjelfull.no> | 2018-11-28 20:17:48 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-11-28 20:17:48 +0800 |
commit | 6b4112527f4e19b1cd233560183331e710bc3514 (patch) | |
tree | 0227c4184ee45c198bd4fd853d708eb5b2e3d47f /packages | |
parent | 3a9f8a7296413ab4446f03f995e781129cee8962 (diff) | |
download | dexon-sol-tools-6b4112527f4e19b1cd233560183331e710bc3514.tar dexon-sol-tools-6b4112527f4e19b1cd233560183331e710bc3514.tar.gz dexon-sol-tools-6b4112527f4e19b1cd233560183331e710bc3514.tar.bz2 dexon-sol-tools-6b4112527f4e19b1cd233560183331e710bc3514.tar.lz dexon-sol-tools-6b4112527f4e19b1cd233560183331e710bc3514.tar.xz dexon-sol-tools-6b4112527f4e19b1cd233560183331e710bc3514.tar.zst dexon-sol-tools-6b4112527f4e19b1cd233560183331e710bc3514.zip |
Add svg loader
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/package.json | 1 | ||||
-rw-r--r-- | packages/website/ts/globals.d.ts | 6 | ||||
-rw-r--r-- | packages/website/webpack.config.js | 4 |
3 files changed, 11 insertions, 0 deletions
diff --git a/packages/website/package.json b/packages/website/package.json index 52ba206c6..fedee462b 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -91,6 +91,7 @@ "less-loader": "^4.1.0", "make-promises-safe": "^1.1.0", "raw-loader": "^0.5.1", + "react-svg-loader": "^2.1.0", "rollbar-sourcemap-webpack-plugin": "^2.4.0", "shx": "^0.2.2", "source-map-loader": "^0.2.4", diff --git a/packages/website/ts/globals.d.ts b/packages/website/ts/globals.d.ts index eb8892aea..097c8171e 100644 --- a/packages/website/ts/globals.d.ts +++ b/packages/website/ts/globals.d.ts @@ -10,6 +10,12 @@ declare module '*.json' { export default json; /* tslint:enable */ } + +declare module '*.svg' { + const svg: any; + export default svg; +} + declare module 'web3-provider-engine/subproviders/filters'; // This will be defined by default in TS 2.4 diff --git a/packages/website/webpack.config.js b/packages/website/webpack.config.js index b01f6ef2c..367aba48f 100644 --- a/packages/website/webpack.config.js +++ b/packages/website/webpack.config.js @@ -55,6 +55,10 @@ const config = { test: /\.css$/, loaders: ['style-loader', 'css-loader'], }, + { + test: /\.svg$/, + loaders: ['react-svg-loader'], + }, ], }, optimization: { |