Added importing of CSS (as text), images (as data URLs)
This commit is contained in:
@@ -41,6 +41,12 @@ export async function compile(
|
||||
outfile: outFile,
|
||||
metafile: true,
|
||||
external: excludeModules,
|
||||
loader: {
|
||||
".css": "text",
|
||||
".png": "dataurl",
|
||||
".gif": "dataurl",
|
||||
".jpg": "dataurl",
|
||||
},
|
||||
absWorkingDir: path.resolve(path.dirname(inFile)),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user