feat: Register ./app.css instead of app.css so it can be provided by webpack context (#5158)

This will let us register the app.css in webpack from a context, and potentially
have a configuration such as:
```
const appCssContext = require.context("~/", false, /^\.\/app\.(css|scss|less|sass)$/);
global.registerWebpackModules(appCssContext);
```
That will work with all of the app.css, app.scss, app.less etc. without further manual reconfiguration.
This commit is contained in:
Panayot Cankov
2017-12-12 14:34:38 +02:00
committed by GitHub
parent 699e6f5da8
commit d356339520
2 changed files with 15 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ export const lowMemoryEvent = "lowMemory";
export const uncaughtErrorEvent = "uncaughtError";
export const orientationChangedEvent = "orientationChanged";
let cssFile: string = "app.css";
let cssFile: string = "./app.css";
let resources: any = {};