This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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!"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
prefix: '', | |
purge: { | |
content: [ | |
'./src/**/*.{html,ts}', | |
] | |
}, | |
darkMode: 'class', // or 'media' or 'class' | |
theme: { | |
extend: {}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { addTailwindPlugin } = require("@ngneat/tailwind"); | |
const tailwindConfig = require("./tailwind.config.js"); | |
module.exports = (config) => { | |
addTailwindPlugin({ | |
webpackConfig: config, | |
tailwindConfig, | |
patchComponentsStyles: true | |
}); | |
return config; |