diff --git a/.eslintrc b/.eslintrc index c93f6044..5a756dc6 100644 --- a/.eslintrc +++ b/.eslintrc @@ -8,6 +8,7 @@ "__PROD__": false, "__SENTRY_URL__": false, "__PRINT_MODE__": false, + "__GLOBAL_STYLES__": false, "__static": false, "window": false, "document": false, diff --git a/flow-defs/globals.js b/flow-defs/globals.js index a373152b..c5319c3f 100644 --- a/flow-defs/globals.js +++ b/flow-defs/globals.js @@ -5,6 +5,7 @@ declare var __PROD__: boolean declare var __ENV__: string declare var __PRINT_MODE__: string declare var __SENTRY_URL__: string +declare var __GLOBAL_STYLES__: string declare var __static: string declare var ResizeObserver: Class diff --git a/src/globals.js b/src/globals.js index 2071155c..69bd02d1 100644 --- a/src/globals.js +++ b/src/globals.js @@ -5,3 +5,4 @@ const { NODE_ENV } = process.env global.__ENV__ = NODE_ENV === 'development' ? NODE_ENV : 'production' global.__DEV__ = global.__ENV__ === 'development' global.__PROD__ = !global.__DEV__ +global.__GLOBAL_STYLES__ = require('./styles/reset') diff --git a/src/index.ejs b/src/index.ejs index 56a4906a..f87f3eb1 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -4,40 +4,8 @@ <%= process.env.npm_package_productName %>