Gathering a CSS file with Puppeteer gives the content wrapped in HTML. Why is this? What must be done to get pure CSS instead?
For example:
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/newmusic/css/newmusic_min_1b1ebf56.css', {waitUntil: 'networkidle0'});
result = await page.content();
my expected result is:
.s-newmusic{position:fixed;.....
but the result is:
<html><head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">.s-newmusic{position:fixed;.....