From 364daa319e69ddcf8ab3b45c6590ae9aab2c7310 Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Fri, 30 Aug 2019 11:26:41 +0300 Subject: [PATCH] use css modules in app styles --- src/App/App.js | 3 ++- src/App/styles.less | 9 ++++++--- webpack.config.js | 3 +-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/App/App.js b/src/App/App.js index fb8ad8217..86ef2b1c2 100644 --- a/src/App/App.js +++ b/src/App/App.js @@ -2,7 +2,7 @@ const React = require('react'); const { Router } = require('stremio-router'); const { KeyboardNavigation, ServicesProvider } = require('stremio/services'); const routerViewsConfig = require('./routerViewsConfig'); -require('./styles'); +const styles = require('./styles'); const App = () => { const onPathNotMatch = React.useCallback(() => { @@ -18,6 +18,7 @@ const App = () => { { - if (context.resourcePath.startsWith(path.resolve(__dirname, 'src/routes')) || - context.resourcePath.startsWith(path.resolve(__dirname, 'src/App'))) { + if (context.resourcePath.startsWith(path.resolve(__dirname, 'src/routes'))) { localIdentName = '[local]'; } else { localIdentName = '[local]-[hash:base64:5]';