From 307db9c7d32defd90464c7b241d85fe74de40603 Mon Sep 17 00:00:00 2001 From: Miguel Laginha Date: Mon, 12 Aug 2019 16:56:06 +0100 Subject: [PATCH] feat: load SVG via CSS using webpack loader Fixes issue #19 --- README.md | 2 +- package.json | 1 + src/components/sidebar.js | 3 +- style/app.scss | 9 ++++++ webpack.config.js | 63 ++++++++++++++++++++------------------- yarn.lock | 10 ++++++- 6 files changed, 54 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index d05b46a..3ec9016 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ This project is based on the [Polymer project PWA starter kit](https://pwa-start To kickstart development: 1. `git clone https://github.com/oaeproject/Biscuit-ux.git && cd Biscuit-ux` -2. `npm install` +2. `yarn` 3. `npm run start:webpack` ## Integration with Hilary diff --git a/package.json b/package.json index 61bf8f6..a049a36 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "prepublish": "npm run snyk-protect" }, "dependencies": { + "svg-url-loader": "latest", "@material/button": "^3.0.0", "@mdi/font": "^3.9.96", "@mdi/svg": "^3.7.95", diff --git a/src/components/sidebar.js b/src/components/sidebar.js index ee7de6c..4d7d963 100644 --- a/src/components/sidebar.js +++ b/src/components/sidebar.js @@ -12,8 +12,7 @@ class Sidebar extends LitElement {