preserveMediaQueries: true still removes <styles>...</styles> from html. · Issue #88 · jonkemp/inline-css · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my code CSS is resolved from tag, if i place CSS in html and run, then tag are left intact, but when adding styles using tag then the styles are not resolved even though inline styles are applied, so preserveMediaQueries: true still removes styles. I am using http-server to run it, and node to create the html.
In my code CSS is resolved from tag, if i place CSS in html and run, then tag are left intact, but when adding styles using tag then the styles are not resolved even though inline styles are applied, so preserveMediaQueries: true still removes styles. I am using http-server to run it, and node to create the html.
Here is the html
Here is the js
var inlineCss = require('inline-css');#
const fileName = 'test-inline.html'
var fs = require('fs'),
path = require('path'),
filePath = path.join(__dirname, fileName);
const inlineOptions = {
url: ' ',
preserveMediaQueries: true
};
// Read file
fs.readFile(filePath, {encoding: 'utf-8'}, function(err, html) {
if (!err) {
console.log('received html: ' + html);
// Inline css file contents to variable
});
The text was updated successfully, but these errors were encountered: