chore: use relative import for app.s?css

This commit is contained in:
Igor Randjelovic
2021-03-30 23:52:03 +02:00
parent f7530fe4e1
commit bfd50f27c7

View File

@@ -1,5 +1,5 @@
import { dedent } from 'ts-dedent'; import { dedent } from 'ts-dedent';
import { basename } from 'path';
/** /**
* This loader tries to load an `app.scss` or and `app.css` relative to the main entry * This loader tries to load an `app.scss` or and `app.css` relative to the main entry
*/ */
@@ -19,7 +19,7 @@ export default function loader(content: string, map: any) {
const code = dedent` const code = dedent`
// Added by app-css-loader // Added by app-css-loader
import "${res}"; import "./${basename(res)}";
${content} ${content}
`; `;