aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/website/package.json1
-rw-r--r--packages/website/ts/globals.d.ts6
-rw-r--r--packages/website/webpack.config.js4
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: {