Skip to content

Instantly share code, notes, and snippets.

@ChristopherBiscardi
Last active August 20, 2020 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChristopherBiscardi/9c4a4a226b2326f138a612e1da83f8ac to your computer and use it in GitHub Desktop.
Save ChristopherBiscardi/9c4a4a226b2326f138a612e1da83f8ac to your computer and use it in GitHub Desktop.
asfasf
["transform-postcss", {
"config": "postcss.config.js",
"extensions": [".modules.css"]
}]
/** @jsx h */
import { h } from 'preact';
import { SettingsProvider } from './context/settings.js';
console.log(
'%c HERE ARE SOME BOOPS FOR YOU',
`
font-size: 6vw;
color: transparent;
background-image: url(https://res.cloudinary.com/jlengstorf/image/upload/q_auto,f_auto,w_100/v1585764654/lwj/store/boop.png);
background-blend-mode: multiply;
background-size: contain;
background-position: 0 -10px;
line-height: 1;
`,
);
console.log(
'%c HELLO FRIENDS THANK YOU FOR COMING TO THE CONSOLE',
`
background-color: #6d114c;
color: white;
font-size: 2.8vw;
line-height: 1;
padding: 4rem 5vw;
`,
);
export default ({ children }) => {
return (
<SettingsProvider>
<div>{children}</div>
</SettingsProvider>
);
};
module.exports = {
plugins: [
require('postcss-modules')({
globalModulePaths: [/src\/styles\/global.css/],
getJSON:
// ctx.extractModules ||
(filename, json, outputFile) => {
console.log(filename, json, outputFile);
},
}),
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment