Skip to content

Instantly share code, notes, and snippets.

View devpato's full-sized avatar
🕺
dancing at the rhythm of typing

Pato devpato

🕺
dancing at the rhythm of typing
View GitHub Profile
@devpato
devpato / webpack.config.js
Created February 11, 2021 06:28
webpack.config.js
const { addTailwindPlugin } = require("@ngneat/tailwind");
const tailwindConfig = require("./tailwind.config.js");
module.exports = (config) => {
addTailwindPlugin({
webpackConfig: config,
tailwindConfig,
patchComponentsStyles: true
});
return config;
@devpato
devpato / tailwind.config.js
Last active July 14, 2021 08:04
tailwind.config.js
module.exports = {
prefix: '',
purge: {
content: [
'./src/**/*.{html,ts}',
]
},
darkMode: 'class', // or 'media' or 'class'
theme: {
extend: {},
@devpato
devpato / NotificationAPI-example.html
Created December 1, 2020 14:39
Notification API
<button onclick="notifyMe()">Notify me!</button>
<script>
function notifyMe() {
//TO TEST THIS CODE CLICK ON THE UPPER RIGHT CORNER WHERE IT SAYS "OPEN IN NEW WINDOW"
if (!("Notification" in window)) {
alert("This browser does not support desktop notification");
} else if (Notification.permission === "granted") {
const notification = new Notification("Hi This Dot Labs!");
}