I want to include critical CSS right in the HTML and that works fine. I also want to do the same with the the minified JS (includes JQuery) bundle. but I get an error doing that.
ERROR: 2016/01/31 html/template:theme/partials/app.js: "=" in unquoted attr: "d.filters=d.pseudos,d.setFilters=new" in theme/partials/app.js
This error is because the template is trying to sanitize the content I think. Is there any way of achieving this without manually pasting the contents of that file in this location (which works)? I just want it to output the contents of this file here without trying to do anything fancy. I want raw output. Can this be done?
…but I bet what you want to accomplish is simpler than that. No need for partials. I’d just copy the files to two subdirectories of “static” because they just get copied over to the public site in the final render:
And then on the template or hardcoded page (as in simple HTML):
<!DOCTYPE html>
<html lang="en">
<head>
<!-- all your other meta stuff here -->
<link href="/css/style.css" rel="stylesheet">
<script src="/js/app.js"></script>
</head>
<body>
...
</body>
</html>
I mean, you could put half of that into a header.html partial and the other half in footer.html partial and call those in a single.html default layout or Home page, but for what you’re asking, I would say this is all you need.