mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: use relative import for app.s?css
This commit is contained in:
@@ -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}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user